-
Notifications
You must be signed in to change notification settings - Fork 44
Registry index paths changed in Rust 1.85.0 #182
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
Comments
Thanks for the heads-up! This means less than 6 weeks to prepare for this. The code creating the sparse index hash seems to be here. From what I can tell, we'd have to be able to…
And to do do that, one would have to to start using the Is that analysis correct? |
Yeah, this makes total sense.
This feels somewhat optional, at a minimum I think users of this crate should have control over which is used. But if there's an easy way to handle the fallback internally that would be good!
Looking at the rustc change I think this is correct. |
I think it would be beneficial if existing cache directories would be found if present so unnecessary downloads can be avoided. When no directory was found, which is probably quite rare, I'd say it should prefer the one using the most recent hash though. Besides that, I think I'd leave all this as implementation detail unless there is demand for making this configurable. |
I opened #184 but the hash I'm getting from |
In Rust 1.85.0, this crate won't be able to find index locations due to rust-lang/cargo#14917. The crate currently expects
sparse+https://index.crates.io/
to map to:However, after rust-lang/cargo#14917 Cargo will instead use:
Thus, the directories will be misaligned.
The text was updated successfully, but these errors were encountered: