{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2657","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2657/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2657/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2657/events","html_url":"https://github.com/rust-lang/cargo/issues/2657","id":153511382,"number":2657,"title":"cargo package fails with submodules","user":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-06T18:30:52Z","updated_at":"2016-05-06T20:17:50Z","closed_at":null,"body":"[This tree](https://github.com/brson/rust-sha2/tree/broken) fails `cargo package` with:\r\n\r\n```\r\n   Packaging sha2 v0.1.0 (file:///home/brian/dev/rust-sha2)\r\n   Verifying sha2 v0.1.0 (file:///home/brian/dev/rust-sha2)\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n   Compiling rustc-serialize v0.3.19\r\n   Compiling sha2 v0.1.0 (file:///home/brian/dev/rust-sha2/target/package/sha2-0.1.0)\r\ntarget/package/sha2-0.1.0/lib.rs:5:9: 5:15 error: couldn't read \"target/package/sha2-0.1.0/rust-crypto/src/buffer.rs\": No such file or directory (os error 2)\r\ntarget/package/sha2-0.1.0/lib.rs:5 pub mod buffer;\r\n                                           ^~~~~~\r\nerror: failed to verify package tarball\r\n\r\nCaused by:\r\n  Could not compile `sha2`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```\r\n\r\nI've tried adding `include` directives to Cargo.toml and moving the submodule under `src`."},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/217547804","html_url":"https://github.com/rust-lang/cargo/issues/2657#issuecomment-217547804","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2657","id":217547804,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T20:17:50Z","updated_at":"2016-05-06T20:17:50Z","body":"Looks like this is a beta regression, I can reproduce on beta's cargo and not on stable's"}}