Skip to content

Commit

Permalink
cargo: fix missing --locked in cargo install
Browse files Browse the repository at this point in the history
Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
  • Loading branch information
imlk0 committed Feb 24, 2025
1 parent 1fdbc07 commit 219b9b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ COPY --from=code-pull /code/rust-toolchain.toml .

COPY --from=code-pull /code/. .

RUN cargo install --path .
RUN cargo install --locked --path .

RUN strip /usr/local/cargo/bin/tng

Expand Down
2 changes: 1 addition & 1 deletion trusted-network-gateway.spec
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ make -Cbuild install DESTDIR=%{_builddir}/%{name}-%{version}/install/rats-rs/
popd
# Build tng
pushd src/
cargo install --path . --root %{_builddir}/%{name}-%{version}/install/tng/
cargo install --locked --path . --root %{_builddir}/%{name}-%{version}/install/tng/
strip %{_builddir}/%{name}-%{version}/install/tng/bin/tng
popd
# Patch tng-envoy
Expand Down

0 comments on commit 219b9b2

Please sign in to comment.