From 913203f5db49fe3e93cd80b9dc9dc7e4a3bba7a3 Mon Sep 17 00:00:00 2001 From: Michael He <53622546+yiyuan-he@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:31:37 -0800 Subject: [PATCH] Update rustc version (#304) *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. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 23fc2c907..c75a13587 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 .