Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 10b307e

Browse files
jackcmaymergify-bot
authored and
mergify-bot
committed
Install xargo using CI dictated cargo version if available (#9068)
(cherry picked from commit 30bed18)
1 parent ec76826 commit 10b307e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ci/rust-version.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export rust_nightly_docker_image=solanalabs/rust-nightly:"$nightly_version"
3838
declare toolchain=$1
3939
if ! cargo +"$toolchain" -V; then
4040
rustup install "$toolchain"
41+
rustup default "$toolchain"
4142
cargo +"$toolchain" -V
4243
fi
4344
}

sdk/bpf/scripts/install.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ download() {
2222
wget "${args[@]}"
2323
}
2424

25-
# Install or upgrade xargo
25+
# Install xargo
2626
(
27-
cargo install cargo-update
28-
cargo install-update-config --version =0.3.19 xargo
29-
set -e
30-
cargo install-update -i xargo
27+
set -ex
28+
cargo +"${rust_stable:-}" install xargo
3129
xargo --version > xargo.md 2>&1
3230
)
3331
# shellcheck disable=SC2181

0 commit comments

Comments
 (0)