Skip to content

Commit

Permalink
tests: Install tools with --locked option
Browse files Browse the repository at this point in the history
Without `--locked` option, installing cargo tools may fail for some
reasons. `--locked` option is useful for reproducible installation since
it ensures to use the exact same set of dependencies.

Signed-off-by: Takahiro Itazuri <[email protected]>
  • Loading branch information
zulinx86 committed Feb 19, 2024
1 parent c403628 commit 8bb8831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/devctr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOL
&& rustup target add x86_64-unknown-linux-musl \
&& rustup target add aarch64-unknown-linux-musl \
&& rustup component add llvm-tools-preview \
&& cargo install cargo-audit cargo-deny grcov cargo-sort \
&& (if [ "$ARCH" = "x86_64" ]; then cargo install kani-verifier && cargo kani setup; else true; fi) \
&& cargo install --locked cargo-audit cargo-deny grcov cargo-sort \
&& (if [ "$ARCH" = "x86_64" ]; then cargo install --locked kani-verifier && cargo kani setup; else true; fi) \
\
&& apt-get update \
&& apt-get -y install --no-install-recommends \
Expand Down

0 comments on commit 8bb8831

Please sign in to comment.