Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo install does not install latest version from crates.io #9987

Closed
nertpinx opened this issue Oct 20, 2021 · 1 comment
Closed

cargo install does not install latest version from crates.io #9987

nertpinx opened this issue Oct 20, 2021 · 1 comment
Labels
C-bug Category: bug

Comments

@nertpinx
Copy link

Problem

I want to update cargo-whatfeatures package (version 0.9.6) that was installed with cargo install because newer package is available (0.9.7) according to crates.io. It works with stable cargo, but does not with the nightly one.

Steps

Make sure you have no cache of crates.io packages downloaded, then try:

$ cargo install cargo-whatfeatures --version 0.9.7
    Updating crates.io index
error: could not find `cargo-whatfeatures` in registry `crates-io` with version `=0.9.7`

When I try with stable cargo it finds that crate:

$ cargo +stable install cargo-whatfeatures --version 0.9.7
    Updating crates.io index
  Downloaded cargo-whatfeatures v0.9.7
  Downloaded 1 crate (35.5 KB) in 0.38s
  Installing cargo-whatfeatures v0.9.7
^C

When I try again with nightly it finds that name+version in the cache and it works.

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.57.0-nightly (c7957a74b 2021-10-11)
release: 1.57.0
commit-hash: c7957a74bdcf3b11e7154c1a9401735f23ebd484
commit-date: 2021-10-11
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.79.1-DEV (sys:0.4.49+curl-7.79.1 vendored ssl:OpenSSL/1.1.1l)
os: OracleLinux 2.8.0 [64-bit]
@ehuss
Copy link
Contributor

ehuss commented Oct 20, 2021

Thanks for the report! This should be fixed in the latest nightly (cc #9976). Feel free to reopen if you continue to have issues.

@ehuss ehuss closed this as completed Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants