From 83cb238ff95170a3faa4b785156466423e061cc8 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Sat, 18 May 2024 12:53:26 +0800 Subject: [PATCH] Force install from git to make sure we can always find cross binary --- install-cross-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-cross-nix.sh b/install-cross-nix.sh index 993a890..10e735f 100755 --- a/install-cross-nix.sh +++ b/install-cross-nix.sh @@ -10,7 +10,7 @@ VERSION="$2" cd "$CROSS_DIR" if [[ -n $VERSION ]] && ! [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - cargo install cross --git https://github.com/cross-rs/cross --rev "$VERSION" + cargo install cross --git https://github.com/cross-rs/cross --rev "$VERSION" --force mv "$HOME/.cargo/bin/cross" . CROSS_NO_WARNINGS=0 ./cross --version exit 0