Skip to content

fixup(rust): Pin all rust host tools checksums#279

Open
alloveras wants to merge 1 commit into
bazel-contrib:masterfrom
alloveras:patch-1
Open

fixup(rust): Pin all rust host tools checksums#279
alloveras wants to merge 1 commit into
bazel-contrib:masterfrom
alloveras:patch-1

Conversation

@alloveras

Copy link
Copy Markdown

On Linux hosts, the nightly Rust toolchain tarballs are downloaded without a pre-declared hash. Bazel logs a DEBUG suggesting the addition of the canonical reproducible form on every fetch.

DEBUG: Rule 'rules_rust++rust_host_tools+rust_host_tools_jsonnet' indicated that a canonical reproducible form can be obtained by modifying arguments sha256s = {"2025-07-01/rustc-nightly-aarch64-apple-darwin.tar.xz": "b5fb4b5272fea4d4ef6e3896e484e9748fda4f29be428ae3a55c22f70566b54c", "2025-07-01/clippy-nightly-aarch64-apple-darwin.tar.xz": "a0715713220f6cb56031a86c91de7a26d1f89d149afc2e01af625a89ca63f673", "2025-07-01/cargo-nightly-aarch64-apple-darwin.tar.xz": "4eb240f69df9f9159c6fef128c3b7c24e5e1ae8aaf1357de4924fd518bd54941", "2025-07-01/llvm-tools-nightly-aarch64-apple-darwin.tar.xz": "ab8d9977ba3187819008b70dab317654bb290fc220cfea35b4f2ea165ce32e70", "2025-07-01/rust-std-nightly-aarch64-apple-darwin.tar.xz": "da6c8e6f256bb6512485db068d35109a3c77ccac678bc28134665cd1b547863b", "2025-07-01/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz": "314716de24ef1ac3cb0e2486f07f836405278b9be322e2061d2b7256d38752bf", "2025-07-01/clippy-nightly-x86_64-unknown-linux-gnu.tar.xz": "31045a959324afec81883d041a1e5fdf4016df37ed0e7302edd18bb38ff3ccd2", "2025-07-01/cargo-nightly-x86_64-unknown-linux-gnu.tar.xz": "450c5e0e91edb56d20122949e45d8bf25d42ce86f7ba26ec072f93617cf57bd4", "2025-07-01/llvm-tools-nightly-x86_64-unknown-linux-gnu.tar.xz": "bce9c76a9d8f32b04e370e14b358895897b175a366d649b9535eb1f7c91a8aa3", "2025-07-01/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz": "f5b0c21177fe6259e19d7a39c9a0f877f595e34468a0838a20b3c401f2b679fa"}

On Linux hosts, the nightly Rust toolchain tarballs are downloaded without a pre-declared hash. Bazel logs a `DEBUG` suggesting the addition of the canonical reproducible form on every fetch.

```
DEBUG: Rule 'rules_rust++rust_host_tools+rust_host_tools_jsonnet' indicated that a canonical reproducible form can be obtained by modifying arguments sha256s = {"2025-07-01/rustc-nightly-aarch64-apple-darwin.tar.xz": "b5fb4b5272fea4d4ef6e3896e484e9748fda4f29be428ae3a55c22f70566b54c", "2025-07-01/clippy-nightly-aarch64-apple-darwin.tar.xz": "a0715713220f6cb56031a86c91de7a26d1f89d149afc2e01af625a89ca63f673", "2025-07-01/cargo-nightly-aarch64-apple-darwin.tar.xz": "4eb240f69df9f9159c6fef128c3b7c24e5e1ae8aaf1357de4924fd518bd54941", "2025-07-01/llvm-tools-nightly-aarch64-apple-darwin.tar.xz": "ab8d9977ba3187819008b70dab317654bb290fc220cfea35b4f2ea165ce32e70", "2025-07-01/rust-std-nightly-aarch64-apple-darwin.tar.xz": "da6c8e6f256bb6512485db068d35109a3c77ccac678bc28134665cd1b547863b", "2025-07-01/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz": "314716de24ef1ac3cb0e2486f07f836405278b9be322e2061d2b7256d38752bf", "2025-07-01/clippy-nightly-x86_64-unknown-linux-gnu.tar.xz": "31045a959324afec81883d041a1e5fdf4016df37ed0e7302edd18bb38ff3ccd2", "2025-07-01/cargo-nightly-x86_64-unknown-linux-gnu.tar.xz": "450c5e0e91edb56d20122949e45d8bf25d42ce86f7ba26ec072f93617cf57bd4", "2025-07-01/llvm-tools-nightly-x86_64-unknown-linux-gnu.tar.xz": "bce9c76a9d8f32b04e370e14b358895897b175a366d649b9535eb1f7c91a8aa3", "2025-07-01/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz": "f5b0c21177fe6259e19d7a39c9a0f877f595e34468a0838a20b3c401f2b679fa"}
```
@alloveras

alloveras commented May 14, 2026

Copy link
Copy Markdown
Author

Seems like it needs #275 for the build to work 😢

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant