Skip to content

Commit 79b1958

Browse files
authored
ci: fix install cargo-nextest (#19120)
1 parent 4d6acc6 commit 79b1958

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/setup/dev_setup.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ if [[ "$INSTALL_BUILD_TOOLS" == "true" ]]; then
625625
# Any call to cargo will make rustup install the correct toolchain
626626
cargo version
627627

628+
CARGO_HOME="${CARGO_HOME:-${HOME}/.cargo}"
629+
628630
## install cargo-binstall
629631
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
630632

@@ -633,9 +635,9 @@ if [[ "$INSTALL_BUILD_TOOLS" == "true" ]]; then
633635

634636
if [[ "$(uname)" == "Linux" ]]; then
635637
if [[ "$(uname -m)" == "x86_64" ]]; then
636-
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C "${CARGO_HOME:-~/.cargo}/bin"
638+
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C "${CARGO_HOME}/bin"
637639
elif [[ "$(uname -m)" == "aarch64" ]]; then
638-
curl -LsSf https://get.nexte.st/latest/linux-arm | tar zxf - -C "${CARGO_HOME:-~/.cargo}/bin"
640+
curl -LsSf https://get.nexte.st/latest/linux-arm | tar zxf - -C "${CARGO_HOME}/bin"
639641
fi
640642
elif [[ "$(uname)" == "Darwin" ]]; then
641643
brew install cargo-nextest

0 commit comments

Comments
 (0)