Skip to content

Commit 0c82417

Browse files
authored
Use --remote_download_all when building rust_analyzer_crate_specs (#3192)
This fixes #3170, by ensuring that transitive deps like procmacro dylibs are fetched from the disk-cache. This works in my case, but it's unclear to me if this has unintended consequences for people running remote builds etc, and this can easily be addressed by users manually by adding `build --remote_download_all` to their .bazelrc too if you prefer not merging this.
1 parent 1f6d91f commit 0c82417

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/rust_analyzer/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub fn generate_crate_info(
2323
.env_remove("BUILD_WORKSPACE_DIRECTORY")
2424
.arg("build")
2525
.arg("--norun_validations")
26+
.arg("--remote_download_all")
2627
.arg(format!(
2728
"--aspects={}//rust:defs.bzl%rust_analyzer_aspect",
2829
rules_rust.as_ref()

0 commit comments

Comments
 (0)