{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/5267","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/5267/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/5267/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/5267/events","html_url":"https://github.com/rust-lang/cargo/issues/5267","id":310192736,"number":5267,"title":"Produce clean error if lockfile would end up with duplicate packages","user":{"login":"TheIronBorn","id":7707250,"avatar_url":"https://avatars2.githubusercontent.com/u/7707250?v=4","gravatar_id":"","url":"https://api.github.com/users/TheIronBorn","html_url":"https://github.com/TheIronBorn","followers_url":"https://api.github.com/users/TheIronBorn/followers","following_url":"https://api.github.com/users/TheIronBorn/following{/other_user}","gists_url":"https://api.github.com/users/TheIronBorn/gists{/gist_id}","starred_url":"https://api.github.com/users/TheIronBorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheIronBorn/subscriptions","organizations_url":"https://api.github.com/users/TheIronBorn/orgs","repos_url":"https://api.github.com/users/TheIronBorn/repos","events_url":"https://api.github.com/users/TheIronBorn/events{/privacy}","received_events_url":"https://api.github.com/users/TheIronBorn/received_events","type":"User","site_admin":false},"labels":[{"id":166054475,"url":"https://api.github.com/repos/rust-lang/cargo/labels/A-errors","name":"A-errors","color":"fbca04","default":false},{"id":690678417,"url":"https://api.github.com/repos/rust-lang/cargo/labels/E-mentor","name":"E-mentor","color":"02e10c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-30T23:41:08Z","updated_at":"2018-05-28T17:17:10Z","closed_at":null,"author_association":"NONE","body":"<short summary of the problem>\r\nI have been getting\r\n\r\n```\r\n$ cargo check --verbose\r\nerror: failed to parse lock file at: <path to Cargo.lock>\r\n\r\nCaused by:\r\n  package <dependency name> is specified twice in the lockfile\r\n```\r\n\r\nIt builds fine the first time but fails on any subsequent attempt.\r\n\r\nI've tried `rm Cargo.lock && cargo clean && cargo check && cargo check --verbose` with nightly, beta, and stable:\r\n```\r\ncargo 1.26.0-nightly (d63299b6e 2018-03-28) | rustc 1.26.0-nightly (ae544ee1c 2018-03-29)\r\ncargo 0.26.0-beta (41480f5cc 2018-02-26)    | rustc 1.25.0-beta.13 (da81b8884 2018-03-24)\r\ncargo 0.26.0 (41480f5cc 2018-02-26)         | rustc 1.25.0 (84203cac6 2018-03-25)"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/392573235","html_url":"https://github.com/rust-lang/cargo/issues/5267#issuecomment-392573235","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/5267","id":392573235,"user":{"login":"boxdot","id":3841359,"avatar_url":"https://avatars3.githubusercontent.com/u/3841359?v=4","gravatar_id":"","url":"https://api.github.com/users/boxdot","html_url":"https://github.com/boxdot","followers_url":"https://api.github.com/users/boxdot/followers","following_url":"https://api.github.com/users/boxdot/following{/other_user}","gists_url":"https://api.github.com/users/boxdot/gists{/gist_id}","starred_url":"https://api.github.com/users/boxdot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxdot/subscriptions","organizations_url":"https://api.github.com/users/boxdot/orgs","repos_url":"https://api.github.com/users/boxdot/repos","events_url":"https://api.github.com/users/boxdot/events{/privacy}","received_events_url":"https://api.github.com/users/boxdot/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T17:17:10Z","updated_at":"2018-05-28T17:17:10Z","author_association":"NONE","body":"@alexcrichton: Thanks for the explanation. In the above PR I catch the error when cargo writes the lockfile. However, I like the idea to catch it earlier much better. I will also compare the versions."}}
{"actor":{"display_login":"boxdot"}}