Unnamed repository; edit this file 'description' to name the repository.
Append `-Zlockfile-path`
Shoyu Vanilla 2 months ago
parent c7c2bef · commit a5be1f3
-rw-r--r--crates/project-model/src/build_dependencies.rs1
-rw-r--r--crates/project-model/src/cargo_workspace.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/crates/project-model/src/build_dependencies.rs b/crates/project-model/src/build_dependencies.rs
index a4eec872b6..aff5391697 100644
--- a/crates/project-model/src/build_dependencies.rs
+++ b/crates/project-model/src/build_dependencies.rs
@@ -475,6 +475,7 @@ impl WorkspaceBuildScripts {
cmd.arg(lockfile_copy.path.as_str());
}
LockfileUsage::WithEnvVar => {
+ cmd.arg("-Zlockfile-path");
cmd.env(
"CARGO_RESOLVER_LOCKFILE_PATH",
lockfile_copy.path.as_os_str(),
diff --git a/crates/project-model/src/cargo_workspace.rs b/crates/project-model/src/cargo_workspace.rs
index f7e57c5b07..792206b74f 100644
--- a/crates/project-model/src/cargo_workspace.rs
+++ b/crates/project-model/src/cargo_workspace.rs
@@ -759,6 +759,7 @@ impl FetchMetadata {
other_options.push(lockfile_copy.path.to_string());
}
LockfileUsage::WithEnvVar => {
+ other_options.push("-Zlockfile-path".to_owned());
command.env("CARGO_RESOLVER_LOCKFILE_PATH", lockfile_copy.path.as_os_str());
}
}