Skip to content

Commit 8ca6eb6

Browse files
fix(rust): install cargo-audit with Cargo (#49)
1 parent 5c545fc commit 8ca6eb6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

rust-nostd-esp/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ USER esp
88
ENV USER=esp
99

1010
# Install extra crates
11-
RUN curl -L "https://github.com/rustsec/rustsec/releases/download/cargo-audit/v0.17.6/cargo-audit-x86_64-unknown-linux-gnu-v0.17.6.tgz" -o "${HOME}/.cargo/bin/cargo-audit.tgz" && \
12-
tar xf "${HOME}/.cargo/bin/cargo-audit.tgz" -C ${HOME}/.cargo/bin --strip-components 1 && \
13-
chmod u+x "${HOME}/.cargo/bin/cargo-audit" && \
11+
RUN cargo install cargo-audit && \
1412
GENERATE_VERSION=$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1) && \
1513
curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -o "${HOME}/.cargo/bin/cargo-generate.tar.gz" && \
1614
tar xf "${HOME}/.cargo/bin/cargo-generate.tar.gz" -C ${HOME}/.cargo/bin && \

rust-std-esp/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ USER esp
44
ENV USER=esp
55

66
# Install extra crates
7-
RUN curl -L "https://github.com/rustsec/rustsec/releases/download/cargo-audit/v0.17.6/cargo-audit-x86_64-unknown-linux-gnu-v0.17.6.tgz" -o "${HOME}/.cargo/bin/cargo-audit.tgz" && \
8-
tar xf "${HOME}/.cargo/bin/cargo-audit.tgz" -C ${HOME}/.cargo/bin --strip-components 1 && \
9-
chmod u+x "${HOME}/.cargo/bin/cargo-audit" && \
7+
RUN cargo install cargo-audit && \
108
GENERATE_VERSION=$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1) && \
119
curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -o "${HOME}/.cargo/bin/cargo-generate.tar.gz" && \
1210
tar xf "${HOME}/.cargo/bin/cargo-generate.tar.gz" -C ${HOME}/.cargo/bin && \

0 commit comments

Comments
 (0)