Include additional hashes in src/stage0 #142139
Open
+126
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch changes
bump-stage0
to include:src/stage0
.src/stage0
.src/stage0
.Combined this will allow for:
Projects that bootstrap their own compiler, such as Fuchsia, or users of bootstrap, to build their compilers offline without needing to communicate with static.rust-lang.org.
Auditors to detect if the channel manifest, and all the artifacts inside the manifest, were modified after it was used to generate
src/stage0
. Furthermore, if they did find modified artifacts, they could determine if the Rust Signing Key was compromised by checking if any modified file was signed properly.finally, it allows regeneration of
src/stage0
when specifying both the day of the build for rust, and the day of the build for rustfmt, which can allow a maintainer to regeneratesrc/stage0
to verify nothing changed.