diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-03-16 17:25:16 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-03-16 17:25:16 +0200 |
commit | d0fd3a1b77b69db6d700161abcf75cb825904b36 (patch) | |
tree | 1ca2e30bf6bcc438b3e10499ff60572e6f7a180f | |
parent | c1d423c5da6958a6a16d51ee48e06789853c4840 (diff) | |
download | ambient-driver-d0fd3a1b77b69db6d700161abcf75cb825904b36.tar.gz |
feat: run "cargo fetch" with --locked
This _should_ tell cargo fetch to get the versions in Cargo.lock,
rather than the newest semver-compatible version. The newer version
isn't in Cargo.lock, which means the build will fail under Ambient.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
-rw-r--r-- | src/action.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/action.rs b/src/action.rs index 8e6f52e..91b0829 100644 --- a/src/action.rs +++ b/src/action.rs @@ -114,6 +114,7 @@ fn cargo_fetch(project: &Project, state: &State) -> Result<(), ActionError> { &format!("CARGO_HOME={}", cargo_home.display()), "cargo", "fetch", + "--locked", ], project.source(), ) |