commit | 0175a1b7aaada0ea34c984c30c245da2a56e8d6c | [log] [tgz] |
---|---|---|
author | Krasimir Georgiev <krasimir@google.com> | Thu Apr 28 12:46:25 2022 +0200 |
committer | GitHub <noreply@github.com> | Thu Apr 28 11:46:25 2022 +0100 |
tree | 9cb074db93627bda8b25f397dec04949190fd29a | |
parent | e07881fa22a5f0d16230d8b23bbff2bf358823b8 [diff] |
fix for using a nightly channel after https://github.com/bazelbuild/rules_rust/commit/841fc6fb82141576d91aecb1d3f2656d58b0ab71 (#1302) The commit https://github.com/bazelbuild/rules_rust/commit/841fc6fb82141576d91aecb1d3f2656d58b0ab71 for https://github.com/bazelbuild/rules_rust/pull/1284 broke the ability to use rust_register_toolchains with a nightly channel, see https://github.com/bazelbuild/rules_rust/commit/841fc6fb82141576d91aecb1d3f2656d58b0ab71#commitcomment-72310891. I tracked the issue down to this line which was updated there. While using a dated nightly, these variables look like: * tool_path: `rust-nightly-x86_64-unknown-linux-gnu` * tool_suburl: `2022-04-06/rust-nightly-x86_64-unknown-linux-gnu` Using tool_suburl causes the extract to fail like in the comment above: `Prefix "2022-04-06/rust-nightly-x86_64-unknown-linux-gnu/rustc" was given, but not found in the archive. Here are possible prefixes for this archive: "rust-nightly-x86_64-unknown-linux-gnu".` Switching back to the old behaviour fixes the glitch. I'm not sure if this breaks novel use cases introduced by https://github.com/bazelbuild/rules_rust/commit/841fc6fb82141576d91aecb1d3f2656d58b0ab71; @wt, could you please take a look. On a sidenote, this is an instance where having some some build bot CI that uses nightly would have noticed this.
This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust
.
Please refer to the full documentation.