Skip to content

Commit 3044eb7

Browse files
authored
Fix Docker build by using --locked for cargo-chef install (#2222)
cargo-chef's transitive dependencies (cargo-platform, cargo_metadata, guppy, target-spec) bumped their MSRV to Rust 1.86-1.88, breaking the install on our pinned Rust 1.85.0 toolchain. Using --locked forces cargo to use cargo-chef's bundled lockfile, which is tested against its supported Rust versions.
2 parents 5835b55 + 46a0527 commit 3044eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN cat rust-toolchain.toml | grep "channel" | awk '{print $3}' | sed 's/\"//g'
1515
&& rustup update $(cat toolchain.txt) \
1616
&& rustup default $(cat toolchain.txt) \
1717
&& rm toolchain.txt rust-toolchain.toml \
18-
&& cargo install cargo-chef
18+
&& cargo install cargo-chef --locked
1919

2020
FROM chef AS planner
2121
ARG BUILD_DEBUG=false

0 commit comments

Comments
 (0)