Skip to content

Commit b1c0195

Browse files
committed
fix: Pin rustup version
1 parent 91545e5 commit b1c0195

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ubi9-rust-builder/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:e1c4703364c5cb58f5462575
77

88
LABEL maintainer="Stackable GmbH"
99

10+
# Pin the rustup version to avoid unexpected breaking changes.
11+
# See https://github.com/rust-lang/rustup/blob/4514d36fcc9c42416176111cd841c86f7ec44b2c/rustup-init.sh#L91
12+
ENV RUSTUP_VERSION=1.28.1
1013
# This SHOULD be kept in sync with operator-templating and other tools to reduce build times
1114
# Find the latest version here: https://doc.rust-lang.org/stable/releases.html
1215
# renovate: datasource=github-releases packageName=rust-lang/rust
@@ -77,7 +80,7 @@ WORKDIR /
7780
# If you change the toolchain version here, make sure to also change the "rust_version"
7881
# property in operator-templating/config/rust.yaml
7982
RUN <<EOF
80-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "$RUST_DEFAULT_TOOLCHAIN_VERSION"
83+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | RUSTUP_VERSION="$RUSTUP_VERSION" sh -s -- -y --default-toolchain "$RUST_DEFAULT_TOOLCHAIN_VERSION"
8184
. "$HOME/.cargo/env"
8285
cargo install --quiet --locked "cargo-cyclonedx@$CARGO_CYCLONEDX_CRATE_VERSION" "cargo-auditable@$CARGO_AUDITABLE_CRATE_VERSION"
8386
EOF

0 commit comments

Comments
 (0)