about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-01-13 15:44:33 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-01-13 16:13:26 +0000
commitbe8f656fac6e2ec8325707b88952c913883b2867 (patch)
tree3bd20b76656db27351a0cf9096dacf98f563c53f
parent957d78c47936a82164803470b97bf7a50efd9fc5 (diff)
downloadrust-be8f656fac6e2ec8325707b88952c913883b2867.tar.gz
rust-be8f656fac6e2ec8325707b88952c913883b2867.zip
Pass --frozen to cargo to ensure ./y.rs prepare fetches all deps
-rw-r--r--.github/workflows/nightly-cranelift.yml2
-rw-r--r--build_system/utils.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/nightly-cranelift.yml b/.github/workflows/nightly-cranelift.yml
index 8b3bfab7071..c3dd7445fd8 100644
--- a/.github/workflows/nightly-cranelift.yml
+++ b/.github/workflows/nightly-cranelift.yml
@@ -36,6 +36,8 @@ jobs:
 
         cat Cargo.toml
 
+        cargo fetch
+
     - name: Build without unstable features
       # This is the config rust-lang/rust uses for builds
       run: ./y.rs build --no-unstable-features
diff --git a/build_system/utils.rs b/build_system/utils.rs
index afbb1b0e5be..f2b1fecedc1 100644
--- a/build_system/utils.rs
+++ b/build_system/utils.rs
@@ -111,7 +111,8 @@ impl CargoProject {
             .arg("--manifest-path")
             .arg(self.manifest_path(dirs))
             .arg("--target-dir")
-            .arg(self.target_dir(dirs));
+            .arg(self.target_dir(dirs))
+            .arg("--frozen");
 
         cmd
     }