Skip to content

bootstrap: use commit hash for --snapshot-sources when no name is given - #165459

Draft
scrabsha wants to merge 3 commits into
rust-lang:mainfrom
scrabsha:bootstrap/snapshop-name-from-hash
Draft

scrabsha wants to merge 3 commits into
rust-lang:mainfrom
scrabsha:bootstrap/snapshop-name-from-hash

Conversation

@scrabsha

@scrabsha scrabsha commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

/!\ still needs polishing /!\

this PR makes --snapshot-sources accept no argument and use a hash of the current checkout instead. the old behavior is still accessible with the --snapshot-sources-name flag.

the hash is:

  • if the checkout is managed by jj, the hash of @
  • if the checkout is managed by git only and the working tree is clean, the hash of HEAD
  • otherwise the tree hash

(i am not a fan of the naming, --snapshot-sources-name feels wrong. suggestions are welcome.)

Over #165402, first commit.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 4, 2026
@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #166507) made this pull request unmergeable. Please resolve the merge conflicts by rebasing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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.

2 participants