-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fails to update crates.toml after updating installed git package #5826
Comments
Ok this seems to be tied to rustup git in some strange way, I was able to update alacritty git and the crates.toml was updated properly. |
I tried to play around a bit more, is there a way to install a git crate via --git without pushing it to the internet?
|
You can use a path URI: |
I think it's related to the broken In #5564 I've added workaround for upgrade procedure (when binary is installed and we install newer version on top of it). Similar workaround could be added before line where |
This just happened to me again, with the rustup git repo. I wonder if there is something strange with that repo in particular that confuses cargo 😕 edit: corrupted metadata (binary missing) |
Ok, cargo corrupts its cache when binaries change names :( |
I believe this issue doesn't exist anymore. If you can make a reproduction on latest Cargo, feel free to reopen with instructions. Since this issue was written, hashing/comparison of PackageId's have changed (they now use exact source_id comparison), and install-tracking has been completely rewritten (which has explicit handling for git hash changes). |
The package is out of date according to
cargo install-update
crates.toml:
I manually updated it
cargo install --git https://github.com/rust-lang-nursery/rustup.rs
however the new git hash is not updated in crates.toml:
Wasn't that just fixed a month ago or so?
The text was updated successfully, but these errors were encountered: