Skip to content

Commit

Permalink
Force install from git to make sure we can always find cross binary
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed May 18, 2024
1 parent b80da53 commit 83cb238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-cross-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83cb238

Please sign in to comment.