{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2199","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2199/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2199/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2199/events","html_url":"https://github.com/rust-lang/cargo/issues/2199","id":120668340,"number":2199,"title":"Cargo.toml is sometimes included twice in when packaging","user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-06T23:03:52Z","updated_at":"2015-12-06T23:03:52Z","closed_at":null,"body":"e.g. packaging https://github.com/sfackler/rust-postgres/commit/9cb5cad656c19081ec71a55c54f6acf005d5c56f\r\n```\r\n ❯ cargo clean\r\n ❯ cargo package\r\n   Packaging postgres v0.10.2 (file:///home/sfackler/rust/rust-postgres)\r\n   Verifying postgres v0.10.2 (file:///home/sfackler/rust/rust-postgres)\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n   Compiling libc v0.2.2\r\n   Compiling winapi-build v0.1.1\r\n   Compiling byteorder v0.4.2\r\n   Compiling hex v0.1.0\r\n   Compiling winapi v0.2.5\r\n   Compiling phf_shared v0.7.9\r\n   Compiling bufstream v0.1.1\r\n   Compiling cfg-if v0.1.0\r\n   Compiling advapi32-sys v0.1.2\r\n   Compiling ws2_32-sys v0.2.1\r\n   Compiling kernel32-sys v0.2.1\r\n   Compiling log v0.3.4\r\n   Compiling phf v0.7.9\r\n   Compiling rand v0.3.12\r\n   Compiling net2 v0.2.19\r\n   Compiling phf_generator v0.7.9\r\n   Compiling phf_codegen v0.7.9\r\n   Compiling postgres v0.10.2 (file:///home/sfackler/rust/rust-postgres/target/package/postgres-0.10.2)\r\n ❯ tar tzf target/package/postgres-0.10.2.crate\r\npostgres-0.10.2/Cargo.toml\r\npostgres-0.10.2/LICENSE\r\npostgres-0.10.2/README.md\r\npostgres-0.10.2/THIRD_PARTY\r\npostgres-0.10.2/build.rs\r\npostgres-0.10.2/src/error.rs\r\npostgres-0.10.2/src/io/mod.rs\r\npostgres-0.10.2/src/io/openssl.rs\r\npostgres-0.10.2/src/io/security_framework.rs\r\npostgres-0.10.2/src/lib.rs\r\npostgres-0.10.2/src/macros.rs\r\npostgres-0.10.2/src/md5.rs\r\npostgres-0.10.2/src/message.rs\r\npostgres-0.10.2/src/notification.rs\r\npostgres-0.10.2/src/priv_io.rs\r\npostgres-0.10.2/src/rows.rs\r\npostgres-0.10.2/src/stmt.rs\r\npostgres-0.10.2/src/types/bit_vec.rs\r\npostgres-0.10.2/src/types/chrono.rs\r\npostgres-0.10.2/src/types/mod.rs\r\npostgres-0.10.2/src/types/rustc_serialize.rs\r\npostgres-0.10.2/src/types/serde.rs\r\npostgres-0.10.2/src/types/serde_json.rs\r\npostgres-0.10.2/src/types/slice.rs\r\npostgres-0.10.2/src/types/time.rs\r\npostgres-0.10.2/src/types/uuid.rs\r\npostgres-0.10.2/src/url.rs\r\npostgres-0.10.2/src/util.rs\r\npostgres-0.10.2/Cargo.toml\r\n```\r\n\r\nPackaging an fresh `cargo new`'d crate doesn't do it so I'm not sure what the exact conditions are."}}