Skip to content

bootstrap: Don't panic on x install --set build.extended=true#156411

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
jyn514:jyn/dry-run-cargo
May 11, 2026
Merged

bootstrap: Don't panic on x install --set build.extended=true#156411
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
jyn514:jyn/dry-run-cargo

Conversation

@jyn514
Copy link
Copy Markdown
Member

@jyn514 jyn514 commented May 10, 2026

This was a regression from #155732.
The Cargo submodule wasn't checked out, so reading from Cargo.toml didn't work. Return a fake version during dry-runs to avoid unnecessarily checking out submodules.

Fixes #156408.

This was a regression from 155732.
The Cargo submodule wasn't checked out, so reading from Cargo.toml
didn't work. Return a fake version during dry-runs to avoid
unnecessarily checking out submodules.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels May 10, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 10, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789, jieyouxu

Copy link
Copy Markdown
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks
r? me @bors r+ rollup

View changes since this review

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 11, 2026

📌 Commit 8643183 has been approved by jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors Bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label May 11, 2026
@rust-bors rust-bors Bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 11, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request May 11, 2026
bootstrap: Don't panic on `x install --set build.extended=true`

This was a regression from rust-lang#155732.
The Cargo submodule wasn't checked out, so reading from Cargo.toml didn't work. Return a fake version during dry-runs to avoid unnecessarily checking out submodules.

Fixes rust-lang#156408.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request May 11, 2026
bootstrap: Don't panic on `x install --set build.extended=true`

This was a regression from rust-lang#155732.
The Cargo submodule wasn't checked out, so reading from Cargo.toml didn't work. Return a fake version during dry-runs to avoid unnecessarily checking out submodules.

Fixes rust-lang#156408.
rust-bors Bot pushed a commit that referenced this pull request May 11, 2026
…uwer

Rollup of 7 pull requests

Successful merges:

 - #156147 (Update ICU4X to 2.2)
 - #156375 (kernel_copy tests: properly join background threads)
 - #155946 (Refuse to push changes with a dirty git client)
 - #156282 (Update `sysinfo` version to `0.39.0`)
 - #156384 (Remove some dead code for dumping MIR for a single DefId)
 - #156392 (Improve doc comments for f32::ceil() and f32::floor())
 - #156411 (bootstrap: Don't panic on `x install --set build.extended=true`)
rust-bors Bot pushed a commit that referenced this pull request May 11, 2026
…uwer

Rollup of 7 pull requests

Successful merges:

 - #156147 (Update ICU4X to 2.2)
 - #156375 (kernel_copy tests: properly join background threads)
 - #155946 (Refuse to push changes with a dirty git client)
 - #156282 (Update `sysinfo` version to `0.39.0`)
 - #156384 (Remove some dead code for dumping MIR for a single DefId)
 - #156392 (Improve doc comments for f32::ceil() and f32::floor())
 - #156411 (bootstrap: Don't panic on `x install --set build.extended=true`)
rust-bors Bot pushed a commit that referenced this pull request May 11, 2026
…uwer

Rollup of 13 pull requests

Successful merges:

 - #156437 (`rust-analyzer` subtree update)
 - #156357 (tests: ip*_properties: avoid parsing the IP over and over again)
 - #156389 (prepare fs tests for miri)
 - #156147 (Update ICU4X to 2.2)
 - #156375 (kernel_copy tests: properly join background threads)
 - #156406 (resolve: Module-related refactorings)
 - #155946 (Refuse to push changes with a dirty git client)
 - #156282 (Update `sysinfo` version to `0.39.0`)
 - #156372 (remove allows_weak_linkage target spec flag)
 - #156384 (Remove some dead code for dumping MIR for a single DefId)
 - #156392 (Improve doc comments for f32::ceil() and f32::floor())
 - #156411 (bootstrap: Don't panic on `x install --set build.extended=true`)
 - #156426 (Fix unwanted "Available on XX-bit only" in libcore integers)
@rust-bors rust-bors Bot merged commit 4846eb7 into rust-lang:main May 11, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone May 11, 2026
rust-timer added a commit that referenced this pull request May 11, 2026
Rollup merge of #156411 - jyn514:jyn/dry-run-cargo, r=jieyouxu

bootstrap: Don't panic on `x install --set build.extended=true`

This was a regression from #155732.
The Cargo submodule wasn't checked out, so reading from Cargo.toml didn't work. Return a fake version during dry-runs to avoid unnecessarily checking out submodules.

Fixes #156408.
@jyn514 jyn514 deleted the jyn/dry-run-cargo branch May 11, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

./x.py install panics on a fresh clone

4 participants