Skip to content

x clean --stage 1 silently does the wrong thing #109313

Closed
@jyn514

Description

@jyn514

I tried this code:

x clean --stage 1

I expected to see this happen: bootstrap only deletes stage 1 artifacts:

; ls build/x86_64-unknown-linux-gnu/stage1* -d
build/x86_64-unknown-linux-gnu/stage1        build/x86_64-unknown-linux-gnu/stage1-tools
build/x86_64-unknown-linux-gnu/stage1-rustc  build/x86_64-unknown-linux-gnu/stage1-tools-bin
build/x86_64-unknown-linux-gnu/stage1-std

Instead, this happened: bootstrap completely ignored the --stage flag and deleted everything in the build directory except for cache.

Meta

HEAD is branched from 13afbda

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions