Skip to content

Commit

Permalink
Update rustc version (#304)
Browse files Browse the repository at this point in the history
*Issue #, if available:*
Our recent PR builds for Python are failing with:
```
#16 3.705 error: failed to compile `cargo-audit v0.21.0`, intermediate artifacts can be found at `/tmp/cargo-installzAcK49`.
#16 3.705 To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
#16 3.705 
#16 3.705 Caused by:
#16 3.705   package `home v0.5.11` cannot be built because it requires rustc 1.81 or newer, while the currently active rustc version is 1.75.0
#16 3.705   Try re-running cargo install with `--locked`
#16 ERROR: process "/bin/sh -c if [ $TARGETARCH = \"amd64\" ]; then cargo install cargo-audit && cargo audit ; fi" did not complete successfully: exit code: 101

#15 [build 5/5] RUN mkdir workspace && pip install --target workspace ./aws-opentelemetry-distro
#15 4.601 Collecting opentelemetry-instrumentation-pymemcache==0.48b0 (from aws-opentelemetry-distro==0.7.0.dev0)
#15 4.614   Downloading opentelemetry_instrumentation_pymemcache-0.48b0-py3-none-any.whl.metadata (1.9 kB)
#15 4.657 Collecting opentelemetry-instrumentation-pymongo==0.48b0 (from aws-opentelemetry-distro==0.7.0.dev0)
#15 4.674   Downloading opentelemetry_instrumentation_pymongo-0.48b0-py3-none-any.whl.metadata (1.9 kB)
```

*Description of changes:*
Bumping the version of rustc to `1.81` in our Dockerfile.


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
  • Loading branch information
yiyuan-he authored Dec 16, 2024
1 parent 11f16d2 commit 913203f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN sed -i "/opentelemetry-exporter-otlp-proto-grpc/d" ./aws-opentelemetry-distr
RUN mkdir workspace && pip install --target workspace ./aws-opentelemetry-distro

# Stage 2: Build the cp-utility binary
FROM public.ecr.aws/docker/library/rust:1.75 as builder
FROM public.ecr.aws/docker/library/rust:1.81 as builder

WORKDIR /usr/src/cp-utility
COPY ./tools/cp-utility .
Expand Down

0 comments on commit 913203f

Please sign in to comment.