Skip to content

Commit b550c43

Browse files
authored
pin cargo-audit version (#285)
*Issue #, if available:* *Description of changes:* [Release workflow](https://github.com/aws-observability/aws-otel-js-instrumentation/actions/runs/18763231799/job/53532731909) failed with ``` 4.633 error: failed to compile `cargo-audit v0.21.2`, intermediate artifacts can be found at `/tmp/cargo-installmLFMlZ`. 4.633 To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. 4.633 4.633 Caused by: 4.633 rustc 1.87.0 is not supported by the following package: 4.633 [email protected] requires rustc 1.89 4.633 Try re-running `cargo install` with `--locked` ``` Fix by using `cargo install cargo-audit --locked` to resolve dependencies using the constraints defined in Cargo.lock. Tested this locally by running `docker build --platform linux/amd64 -t test-adot-js .` without and with the change, confirmed that the latter works. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent a7d3f71 commit b550c43

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
@@ -36,7 +36,7 @@ ARG TARGETARCH
3636
RUN if [ $TARGETARCH = "amd64" ]; then rustup component add rustfmt && cargo fmt --check ; fi
3737

3838
# Audit dependencies
39-
RUN if [ $TARGETARCH = "amd64" ]; then cargo install cargo-audit && cargo audit ; fi
39+
RUN if [ $TARGETARCH = "amd64" ]; then cargo install cargo-audit --locked && cargo audit ; fi
4040

4141

4242
# Cross-compile based on the target platform.

0 commit comments

Comments
 (0)