Bootstrap fails to build when switching between submodule and subtree #72104
Labels
A-contributor-roadblock
Area: Makes things more difficult for new or seasoned contributors to Rust
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
When switching between git trees where one contains clippy as a submodule and one contains clippy in tree, x.py fails to initialize the submodule correctly in some cases, resulting in a failed build. For example:
Full output: xpy-clippy.txt
/tmp/rust/src/tools/clippy/Cargo.toml
should be in the clippy submodule but it's not checked out correctly. If I dogit reset --hard
inside the submodule, it works fine.related #63964
@rustbot modify labels +A-rustbuild
The text was updated successfully, but these errors were encountered: