-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(package): Register workspace member renames in overlay #15228
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
Conversation
This was reported at rust-lang#10948 (comment) I suspect there is a second bug here because my debugging only showed us doing this for `val-json` and not `concepts` and only when building `utils`. For the exact mapping between the publish payload and the index, see https://doc.rust-lang.org/cargo/reference/registry-index.html#json-schema, particularly the note about differences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect there is a second bug here because my debugging only showed us
hitting this scenario forval-json
and notconcepts
and only when buildingutils
. That difference in behavior between a transitive and direct dependency is odd.
I think this patch correctly fixes the issue and the transitive-direct difference is the exactly why the behavior. The rename for a direct dependency happens in Cargo.toml, whereas for transitive Cargo consults index files (I didn't double check code logic though).
Anyway, feel free to merge this after fixing the wrongly placed change in the second commit. Thanks for this fix!
Update cargo 11 commits in 1d1d646c06a84c1aa53967b394b7f1218f85db82..2622e844bc1e2e6123e54e94e4706f7b6195ce3d 2025-02-21 21:38:53 +0000 to 2025-02-28 12:33:57 +0000 - Bump `cc` to 1.2.16 to fix `x86` windows jobs in rust-lang/rust CI (rust-lang/cargo#15245) - refactor(tree): Abstract the concept of a NodeId (rust-lang/cargo#15237) - feat: implement RFC 3553 to add SBOM support (rust-lang/cargo#13709) - refactor(tree): Abstract the concept of an edge (rust-lang/cargo#15233) - chore: bump openssl to v3 (rust-lang/cargo#15232) - fix(package): Register workspace member renames in overlay (rust-lang/cargo#15228) - Implemented `build.build-dir` config option (rust-lang/cargo#15104) - feat: add completions for `--manifest-path` (rust-lang/cargo#15225) - chore: semver-check build-rs against beta channel (rust-lang/cargo#15223) - chore: depend on openssl-sys to correctly pin its version (rust-lang/cargo#15224) - chore: dont check cargo-util semver until 1.86 is released (rust-lang/cargo#15222)
What does this PR try to resolve?
This was reported at #10948 (comment)
For the exact mapping between the publish payload and the index,
see
https://doc.rust-lang.org/cargo/reference/registry-index.html#json-schema,
particularly the note about differences.
How should we test and review this PR?
Additional information
I suspect there is a second bug here because my debugging only showed us
hitting this scenario for
val-json
and notconcepts
and only when buildingutils
. That difference in behavior between a transitive and direct dependency is odd.