-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[beta] Hash Kind
in metadata for crates
#4169
Conversation
This fixes what is now a bug in Cargo discovered when attempting to land rust-lang/rust#42495 where Cargo will compile both host and target artifacts with the same `-C metadata` flag. This means that the compile can load two crates with the same SVH that are supposed to be distinct, which causes weird bugs with crate loading and whatnot. This commit throws in the `Kind` into the metadata calculation to resolve this to ensure that host/target artifacts always have a different `-C metadata`
@bors: r+ |
📌 Commit 7177f56 has been approved by |
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
⌛ Testing commit 7177f56 with merge 56f4979... |
💔 Test failed - status-appveyor |
Seems spurious, but I don't think I can retry -- might as well try, I guess. @bors retry
|
@bors: retry This'll require #4171 to go in first but that should likely land. @Mark-Simulacrum want to add yourself to Cargo reviewers? |
[beta] Hash `Kind` in metadata for crates This fixes what is now a bug in Cargo discovered when attempting to land rust-lang/rust#42495 where Cargo will compile both host and target artifacts with the same `-C metadata` flag. This means that the compile can load two crates with the same SVH that are supposed to be distinct, which causes weird bugs with crate loading and whatnot. This commit throws in the `Kind` into the metadata calculation to resolve this to ensure that host/target artifacts always have a different `-C metadata`
☀️ Test successful - status-appveyor, status-travis |
Pulls in two beta fixes for cargo: * rust-lang/cargo#4169 * rust-lang/cargo#4170
This fixes what is now a bug in Cargo discovered when attempting to land
rust-lang/rust#42495 where Cargo will compile both host and target artifacts
with the same
-C metadata
flag. This means that the compile can load twocrates with the same SVH that are supposed to be distinct, which causes weird
bugs with crate loading and whatnot.
This commit throws in the
Kind
into the metadata calculation to resolve thisto ensure that host/target artifacts always have a different
-C metadata