aboutsummaryrefslogtreecommitdiff
path: root/tools/rust_analyzer/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rust_analyzer/lib.rs')
-rw-r--r--tools/rust_analyzer/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/rust_analyzer/lib.rs b/tools/rust_analyzer/lib.rs
index 53cf0bf7..0ab395ad 100644
--- a/tools/rust_analyzer/lib.rs
+++ b/tools/rust_analyzer/lib.rs
@@ -20,7 +20,11 @@ pub fn generate_crate_info(
let output = Command::new(bazel.as_ref())
.current_dir(workspace.as_ref())
+ .env_remove("BAZELISK_SKIP_WRAPPER")
+ .env_remove("BUILD_WORKING_DIRECTORY")
+ .env_remove("BUILD_WORKSPACE_DIRECTORY")
.arg("build")
+ .arg("--norun_validations")
.arg(format!(
"--aspects={}//rust:defs.bzl%rust_analyzer_aspect",
rules_rust.as_ref()