The distributed compiler sources do not come with an up-to-date lockfile #116229
Labels
A-reproducibility
Area: Reproducible / deterministic builds
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-release
Relevant to the release subteam, which will review and decide on the PR/issue.
After installing the
rustc-src
component, trying to runcargo metadata
on them will fail if the sources are installed in a read-only location (such as on Nix, or whencargo metadata
is run in a sandbox). This could be avoided by either fixing cargo (rust-lang/cargo#10096), or by adjusting the rustc-src component to work around this behavior of cargo, by shipping an up-to-date lockfile.Part of the problem seems to be that the cargo crates are not in a workspace any more when they are inside rustc-src. However, sadly, even if one puts a
Cargo.toml
(with all references tolibrary/
andsrc/tools/
removed) into the right place, Cargo is still not happy with the lockfile -- it insists on removing everything unnecessary from this lockfile. So producing a lockfile that cargo is happy with could be rather tricky.The text was updated successfully, but these errors were encountered: