Closed
Description
When bootstrap updates a submodule, it performs a hard reset, discarding all local changes:
Lines 631 to 632 in 1481fd9
This was a nasty surprise when I was editing my local src/llvm-project
, and then did a git pull
and ./x.py build
.
Fortunately, I only had some extra debugging prints added, but there was no indication that my local changes would be overwritten.
We should require explicit confirmation before potentially deleting local changes like this.
Metadata
Metadata
Assignees
Labels
Area: Makes things more difficult for new or seasoned contributors to RustCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the infrastructure team, which will review and decide on the PR/issue.