Skip to content

Commit be8f656

Browse files
committed
Pass --frozen to cargo to ensure ./y.rs prepare fetches all deps
1 parent 957d78c commit be8f656

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/nightly-cranelift.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
3737
cat Cargo.toml
3838
39+
cargo fetch
40+
3941
- name: Build without unstable features
4042
# This is the config rust-lang/rust uses for builds
4143
run: ./y.rs build --no-unstable-features

build_system/utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ impl CargoProject {
111111
.arg("--manifest-path")
112112
.arg(self.manifest_path(dirs))
113113
.arg("--target-dir")
114-
.arg(self.target_dir(dirs));
114+
.arg(self.target_dir(dirs))
115+
.arg("--frozen");
115116

116117
cmd
117118
}

0 commit comments

Comments
 (0)