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

Fix crates.io sparse yanks #513

Merged
merged 6 commits into from
Apr 12, 2023
Merged

Fix crates.io sparse yanks #513

merged 6 commits into from
Apr 12, 2023

Conversation

Jake-Shadle
Copy link
Member

  • Improve diagnostics when we can't query for a crate
  • Detect sparse registry usage
  • Update tests

Resolves: #508

Currently in cargo, crates.io sparse support acts more like a patch in
that the source for crates.io packages are still the old git index url,
however the actual index used is the sparse one, which we can detect by
checking if the crate's source is located in the sparse checkout
location. This is...hacky, but will _probably_ not change and should
suffice until such a time as the sparse index becomes the default and/or
the crates.io source is changed to use the sparse url rather than the
git one
@Jake-Shadle Jake-Shadle merged commit 38d5570 into main Apr 12, 2023
@Jake-Shadle Jake-Shadle deleted the fix-sparse-yanks branch April 12, 2023 13:58
jameysharp added a commit to bytecodealliance/regalloc2 that referenced this pull request Apr 30, 2024
I think we need at least version 0.13.9, which includes
EmbarkStudios/cargo-deny#513 to fix checking for
yanked crates with the new sparse crates.io index format. I'm upgrading
to the newest release just in case there's anything else we might want.
cfallin pushed a commit to bytecodealliance/regalloc2 that referenced this pull request Apr 30, 2024
I think we need at least version 0.13.9, which includes
EmbarkStudios/cargo-deny#513 to fix checking for
yanked crates with the new sparse crates.io index format. I'm upgrading
to the newest release just in case there's anything else we might want.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to check for yanked crates when crates.io git registry is outdated
1 participant