-
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
Cargo 1.56.0 (silently) fails to update the index after an index squash #11009
Comments
Looking at https://github.com/rust-lang/crates.io-index/blob/master/li/bc/libc it is not #10623 |
Thanks for posting this issue. Unfortunately, I cannot reproduce on my machine with both 1.56.0 or 1.56.1. I have no idea what happened. Could you backup the whole registry index, then delete it and try again? If that fresh index works, please share with us the old registry index. |
Not sure what exactly you meant with "the index", so I went all-in:
Then I did the
Moving
Any preference/suggestion on how to share 3.2 GiB of data? Or is there something specific in there that you want? I took a look around and
So, apparently something did something with something and now Still, no idea how I managed to get this broken index. Note that I am using cargo from Debian. Could it be that this is a problem fixed in a newer version of libgit than what Debian provides? Sadly, I now have no idea on "good" reproducing instructions. My wishlist item would be "properly detect such a broken state and either auto-heal or provide some kind of error message". Edit: With the fresh/new index, deleting |
That sounds like #9979. |
Indeed. And that was apparently fixed in Cargo 0.59, according to GitHub. I'll assume that would be cargo 1.59.0 on user systems? So, this issue can be closed and people who insist to use old software will just have to mess around in Edit: Let's see what Debian does: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017828 |
Thank you for opening the issue. I am glad we found the source of the problem. The fix from our end is, as you suggested, "do not use such an old version". If Debian wants to recommend that old version, then they have to be willing to patch it. Thank you for opening the issue with them. |
Problem
Cargo claims that the newest libc version is 0.2.126 even though the newest version is 0.2.132 and cargo should now about it:
Steps
Possible Solution(s)
No response
Notes
I manually hacked
~/.cargo/registry/index/github.com-1ecc6299db9ec823/.cache/li/bc/libc
, copied the entry for0.2.126
, called it0.2.127
and updated thecksum
. Now cargo finds 0.2.127. Dunno what is going on here.The only other thing I noticed is that the index lists the features of 0.2.126 in alphabetical order but does not do so for 0.2.127.
Possibly related (or not): #10623
Version
Edit: Feel free to tell me "do not use such an old version". I just have no idea what is causing this and didn't find anything at all that seemed relevant, so I opened this issue.
The text was updated successfully, but these errors were encountered: