Install golang via homebrew instead of gvm (Go Version Manager)

This commit is contained in:
2018-05-06 22:52:32 +01:00
parent f6349309b3
commit 872b349d06
3 changed files with 4 additions and 19 deletions

View File

@@ -46,6 +46,7 @@ main() {
git
git-crypt
git-standup
go
heroku
htop
httpie

View File

@@ -102,10 +102,6 @@ install_nvm () {
git_clone 'https://github.com/creationix/nvm.git' "$TARGET/.nvm"
}
install_gvm () {
git_clone 'https://github.com/moovweb/gvm.git' "$TARGET/.gvm"
}
install_rustup () {
curl https://sh.rustup.rs -sSf | sh
}
@@ -161,9 +157,6 @@ case "$1" in
nvm)
install_nvm
;;
gvm)
install_gvm
;;
rustup)
install_rustup
;;

View File

@@ -2,21 +2,12 @@
# Go (golang) environment setup.
#
export MYGOPATH="$HOME/Projects/Go"
# load gvm
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
# setup GOPATH after loading gvm
export GOPATH="$GOPATH:$MYGOPATH"
path_prepend "$MYGOPATH/bin"
export GOPATH="$HOME/.go:$HOME/Projects/Go"
path_prepend "$HOME/.go/bin"
path_prepend "$HOME/Projects/Go"
# aliases
alias gv="govendor"
gvm-use() {
gvm use "$@"
export GOPATH="$GOPATH:$MYGOPATH"
}
install_go_global_packages () {
local packages=(