Skip to content

Commit

Permalink
Support new default go (go1.11) & new file-listing layout for Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
fbartho committed Apr 16, 2019
1 parent df52ab7 commit edb8a96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions bin/go_use_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ alias go_use_refresh="source `which go_use_fixup_env`"
alias go_use_12="go_use go12; go_use_refresh"
alias go_use_14="go_use go14; go_use_refresh"
alias go_use_15="go_use go15; go_use_refresh"
alias go_use_16="go_use go16; go_use_refresh"

# brew's recipe for go 1.6 is currently "go"
alias go_use_16="go_use go; go_use_refresh"
# brew's recipe for go 1.11.1 is currently "go"
alias go_use_1_11="go_use go; go_use_refresh"
3 changes: 1 addition & 2 deletions bin/go_use_fixup_env
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
GOPATHBASE=~/Code/gopath

GOVER=$(cat ~/.go_ver)

GOVERSION=$(brew list ${GOVER} | head -n 1 | cut -d '/' -f 6)
GOVERSION=$(brew list ${GOVER} | grep '/bin/go' | head -n 1 | cut -d '/' -f 6)
export GOROOT=$(brew --prefix)/Cellar/$GOVER/$GOVERSION/libexec
export GOPATH="$GOPATHBASE/$GOVER"

Expand Down

0 comments on commit edb8a96

Please sign in to comment.