{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/3223","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/3223/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/3223/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/3223/events","html_url":"https://github.com/rust-lang/cargo/issues/3223","id":184618227,"number":3223,"title":"'no matching package' error during publish even though package exists","user":{"login":"Byron","id":63622,"avatar_url":"https://avatars.githubusercontent.com/u/63622?v=3","gravatar_id":"","url":"https://api.github.com/users/Byron","html_url":"https://github.com/Byron","followers_url":"https://api.github.com/users/Byron/followers","following_url":"https://api.github.com/users/Byron/following{/other_user}","gists_url":"https://api.github.com/users/Byron/gists{/gist_id}","starred_url":"https://api.github.com/users/Byron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Byron/subscriptions","organizations_url":"https://api.github.com/users/Byron/orgs","repos_url":"https://api.github.com/users/Byron/repos","events_url":"https://api.github.com/users/Byron/events{/privacy}","received_events_url":"https://api.github.com/users/Byron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-22T08:38:39Z","updated_at":"2016-10-26T05:09:59Z","closed_at":null,"body":"### How to reproduce\r\n\r\nEven though you wouldn't be able to publish this crate, it will abort beforehand:\r\n\r\n```bash\r\ngit clone --depth 1 --single-branch https://github.com/Byron/google-apis-rs\r\ncd google-apis-rs\r\nmake publish-cli -j 8\r\n```\r\n\r\nThe output is as follows:\r\n```\r\n[...]\r\ncd gen/serviceregistryalpha-cli && cargo publish\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n   Packaging google-serviceregistryalpha-cli v1.0.0+20160401 (file:///Users/byron/google-apis-rs/gen/serviceregistryalpha-cli)\r\n   Verifying google-serviceregistryalpha-cli v1.0.0+20160401 (file:///Users/byron/google-apis-rs/gen/serviceregistryalpha-cli)\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\nerror: failed to verify package tarball\r\n\r\nCaused by:\r\n  no matching package named `google-serviceregistryalpha` found (required by `google-serviceregistryalpha-cli`)\r\nlocation searched: registry https://github.com/rust-lang/crates.io-index\r\nversion required: ^1.0.0\r\nversions found: 0.1.15+20160401, 0.1.14+20160401, 0.1.13+20160401, ...\r\n```\r\n\r\nHowever, the required version `1.0.0+20160401` of `google-serviceregistryalpha` is available, both [online](https://crates.io/crates/google-serviceregistryalpha) as well as locally (see `Cargo.toml` files in the _details_ section.\r\n\r\nInterestingly, this is the only remaining CLI package that has to be published, all others already worked.\r\n\r\nCould this be some sort of inconsistency in the database, or a problem on how cargo handles versions ?\r\n\r\n#### Meta\r\n\r\n```bash\r\n# nightly\r\n➜  google-apis-rs git:(master) cargo --version && rustc --version\r\ncargo 0.13.0-nightly (9a0801d 2016-10-20)\r\nrustc 1.14.0-nightly (f09420685 2016-10-20)\r\n\r\n# OR stable\r\n➜  google-apis-rs git:(master) cargo --version && rustc --version\r\ncargo 0.13.0-nightly (109cb7c 2016-08-19)\r\nrustc 1.12.1 (d4f39402a 2016-10-19)\r\n```\r\n\r\n<details>\r\nHere is the `Cargo.toml` of the `google-serviceregistryalpha-cli` crate:\r\n```toml\r\n# DO NOT EDIT !\r\n# This file was generated automatically from 'src/mako/Cargo.toml.mako'\r\n# DO NOT EDIT !\r\n[package]\r\n\r\nname = \"google-serviceregistryalpha-cli\"\r\nversion = \"1.0.0+20160401\"\r\nauthors = [\"Sebastian Thiel <byronimo@gmail.com>\"]\r\ndescription = \"A complete library to interact with Service Registry (protocol alpha)\"\r\nrepository = \"https://github.com/Byron/google-apis-rs/tree/master/gen/serviceregistryalpha-cli\"\r\nhomepage = \"https://developers.google.com/cloud-serviceregistry/\"\r\ndocumentation = \"http://byron.github.io/google-apis-rs/google_serviceregistryalpha_cli\"\r\nlicense = \"MIT\"\r\nkeywords = [\"serviceregistry\", \"google\", \"cli\"]\r\n\r\n[[bin]]\r\nname = \"serviceregistryalpha\"\r\n\r\n[dependencies]\r\nhyper = \"^ 0.9\"\r\nmime = \"^ 0.2.0\"\r\nserde = \"^ 0.8\"\r\nserde_json = \"^ 0.8\"\r\nyup-oauth2 = { version = \"^ 1.0\", optional = true, default-features = false }\r\nserde_derive = { version = \"^ 0.8\", optional = true }\r\nstrsim = \"^0.5\"\r\nyup-hyper-mock = \"^1.0\"\r\nclap = \"^2.0\"\r\n\r\n[features]\r\ndefault = [\"with-serde-codegen\"]\r\nnightly = [\"serde_derive\",\"yup-oauth2/nightly\",\"google-serviceregistryalpha/nightly\"]\r\nwith-serde-codegen = [\"serde_codegen\",\"yup-oauth2/with-serde-codegen\",\"google-serviceregistryalpha/with-serde-codegen\"]\r\n\r\n[build-dependencies]\r\nserde_codegen = { version = \"^ 0.8\", optional = true }\r\n\r\n\r\n[dependencies.google-serviceregistryalpha]\r\npath = \"../serviceregistryalpha\"\r\nversion = \"1.0.0\"\r\noptional = true\r\ndefault-features = false\r\n```\r\n\r\nAnd here the `Cargo.toml` of the crate being referred to, `../serviceregistryalpha`:\r\n```toml\r\n# DO NOT EDIT !\r\n# This file was generated automatically from 'src/mako/Cargo.toml.mako'\r\n# DO NOT EDIT !\r\n[package]\r\n\r\nname = \"google-serviceregistryalpha\"\r\nversion = \"1.0.0+20160401\"\r\nauthors = [\"Sebastian Thiel <byronimo@gmail.com>\"]\r\ndescription = \"A complete library to interact with Service Registry (protocol alpha)\"\r\nrepository = \"https://github.com/Byron/google-apis-rs/tree/master/gen/serviceregistryalpha\"\r\nhomepage = \"https://developers.google.com/cloud-serviceregistry/\"\r\ndocumentation = \"http://byron.github.io/google-apis-rs/google_serviceregistryalpha\"\r\nlicense = \"MIT\"\r\nkeywords = [\"serviceregistry\", \"google\", \"protocol\", \"web\", \"api\"]\r\nbuild = \"src/build.rs\"\r\n\r\n\r\n[dependencies]\r\nhyper = \"^ 0.9\"\r\nmime = \"^ 0.2.0\"\r\nserde = \"^ 0.8\"\r\nserde_json = \"^ 0.8\"\r\nyup-oauth2 = { version = \"^ 1.0\", optional = true, default-features = false }\r\nserde_derive = { version = \"^ 0.8\", optional = true }\r\nurl = \"= 0.5\"\r\n\r\n[features]\r\ndefault = [\"with-serde-codegen\"]\r\nnightly = [\"serde_derive\",\"yup-oauth2/nightly\"]\r\nwith-serde-codegen = [\"serde_codegen\",\"yup-oauth2/with-serde-codegen\"]\r\n\r\n[build-dependencies]\r\nserde_codegen = { version = \"^ 0.8\", optional = true }\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/256251077","html_url":"https://github.com/rust-lang/cargo/issues/3223#issuecomment-256251077","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/3223","id":256251077,"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-10-26T05:09:59Z","updated_at":"2016-10-26T05:09:59Z","body":"Oh bah it looks like this is a case of https://github.com/rust-lang/crates.io/issues/448, the crate was published to crates.io but didn't make it into the index :(\r\n\r\nFor now you may have to republish google-serviceregistryalpha unfortunately. Sorry about that!"}}
{"actor":{"display_login":"alexcrichton"}}