Skip to content

Commit 78328be

Browse files
chore(stackable-base): Install missing rust toolchains
The behaviour of rustup has recently changed: rust-lang/rustup#3985 Co-authored-by: Techassi <[email protected]>
1 parent 81f767d commit 78328be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stackable-base/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ microdnf --assumeyes install \
3434
microdnf clean all
3535
rm -rf /var/cache/yum
3636

37+
# WARNING (@NickLarsenNZ): We should pin the rustup version
3738
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "$RUST_DEFAULT_TOOLCHAIN_VERSION"
3839
. "$HOME/.cargo/env" && cargo --quiet install cargo-cyclonedx@"$CARGO_CYCLONEDX_CRATE_VERSION" cargo-auditable@"$CARGO_AUDITABLE_CRATE_VERSION"
3940
EOF
@@ -44,6 +45,7 @@ RUN <<EOF
4445
git clone --depth 1 --branch "${CONFIG_UTILS_VERSION}" https://github.com/stackabletech/config-utils
4546
cd ./config-utils
4647
. "$HOME/.cargo/env"
48+
rustup toolchain install
4749
cargo auditable --quiet build --release && cargo cyclonedx --all --spec-version 1.5 --describe binaries
4850
EOF
4951

@@ -53,6 +55,7 @@ RUN <<EOF
5355
git clone --depth 1 --branch "${CONTAINERDEBUG_VERSION}" https://github.com/stackabletech/containerdebug
5456
cd ./containerdebug
5557
. "$HOME/.cargo/env"
58+
rustup toolchain install
5659
cargo auditable --quiet build --release && cargo cyclonedx --all --spec-version 1.5 --describe binaries
5760
EOF
5861

0 commit comments

Comments
 (0)