Skip to content

Commit

Permalink
build: ensure we use our rust binaries
Browse files Browse the repository at this point in the history
If the cargo home exists, it takes precedence, unless we add it
to the path, with lower precedence...

Signed-off-by: Tiago Castro <[email protected]>
  • Loading branch information
tiagolobocastro committed Jul 17, 2024
1 parent 79183cc commit ccdeb1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/rust-linter-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ if [ -n "$RUST_NIGHTLY_PATH" ]; then
# cargo searches PATH for its subcommands (e.g. cargo fmt), so export
# PATH with RUST_NIGHTLY_PATH put before all other PATHs.
PATH=$RUST_NIGHTLY_PATH/bin:$PATH
# cargo attempts to search in ~/.cargo/bin first, so we need to put
# that at the end of the path as a quirky WA... sad :(
PATH=$PATH:~/.cargo/bin
fi

# Try cargo from PATH.
Expand Down

0 comments on commit ccdeb1d

Please sign in to comment.