Skip to content

Commit

Permalink
fix: Update Pants installation path from ~/bin to ~/.local/bin (#…
Browse files Browse the repository at this point in the history
…1806)

Backported-from: main
Backported-to: 23.09
Co-authored-by: Joongi Kim <joongi@lablup.com>
  • Loading branch information
hoyajigi and achimnol committed Jan 9, 2024
1 parent a7e311f commit 9d5a83e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/1806.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the default PATH where the `pants` executable is installed in `install-dev.sh`
4 changes: 2 additions & 2 deletions scripts/install-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ bootstrap_pants() {
curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh > /tmp/get-pants.sh
bash /tmp/get-pants.sh
if ! command -v pants &> /dev/null ; then
$sudo ln -s $HOME/bin/pants /usr/local/bin/pants
show_note "Symlinked $HOME/bin/pants from /usr/local/bin/pants as we could not find it from PATH..."
$sudo ln -s $HOME/.local/bin/pants /usr/local/bin/pants
show_note "Symlinked $HOME/.local/bin/pants from /usr/local/bin/pants as we could not find it from PATH..."
fi
;;
esac
Expand Down

0 comments on commit 9d5a83e

Please sign in to comment.