Skip to content

Commit

Permalink
[go] Switch GOROOT to brew prefix for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhif committed Aug 21, 2023
1 parent 94912ab commit 8dbc2cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bash/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
PATH=$PATH:/usr/local/bin # local binaries
PATH=$PATH:${HOME}/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin
# Go path
export GOROOT=${HOME}/.homebrew/opt/go/libexec
export GOROOT=$(brew --prefix go)/libexec
export GOPATH=${HOME}/Projets/go/
PATH=$PATH:$GOPATH/bin
PATH=$PATH:$GOROOT/bin
Expand Down
2 changes: 1 addition & 1 deletion zsh/custom/path.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
PATH=$PATH:/usr/local/bin # local binaries
PATH=$PATH:${HOME}/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin
# Go path
export GOROOT=${HOME}/.homebrew/opt/go/libexec
export GOROOT=$(brew --prefix go)/libexec
export GOPATH=${HOME}/Projets/go/
PATH=$PATH:$GOPATH/bin
PATH=$PATH:$GOROOT/bin
Expand Down

0 comments on commit 8dbc2cc

Please sign in to comment.