update go install

This commit is contained in:
Frieder Schlesier 2018-11-12 11:47:43 +01:00
parent 787f1416db
commit 005a0e7326
2 changed files with 8 additions and 9 deletions

View File

@ -116,5 +116,5 @@ if ! shopt -oq posix; then
fi fi
export GOROOT=/usr/local/go export GOROOT=/usr/local/go
export GOPATH=/home/fschl/projects/go-projects export GOPATH=/home/fschl/projects/go
export PATH=${PATH}:${GOROOT}/bin:${GOPATH}/bin export PATH=${PATH}:${GOROOT}/bin:${GOPATH}/bin

View File

@ -254,15 +254,12 @@ get_dotfiles() {
# TODO: propbably dont really need the whole repo # TODO: propbably dont really need the whole repo
git clone https://gitlab.com/fschl/dockerfiles.git "/home/$USERNAME/dockerfiles" git clone https://gitlab.com/fschl/dockerfiles.git "/home/$USERNAME/dockerfiles"
# TODO: on the server? really?
git clone https://gitlab.com/fschl/.emacs.d.git "/home/$USERNAME/.emacs.d"
) )
} }
# install/update golang from source # install/update golang from source
install_golang() { install_golang() {
export GO_VERSION=1.7.4 export GO_VERSION=1.11.2
export GO_SRC=/usr/local/go export GO_SRC=/usr/local/go
# if we are passing the version # if we are passing the version
@ -282,10 +279,12 @@ install_golang() {
go get github.com/golang/lint/golint go get github.com/golang/lint/golint
go get golang.org/x/tools/cmd/cover go get golang.org/x/tools/cmd/cover
go get golang.org/x/review/git-codereview go get golang.org/x/review/git-codereview
go get golang.org/x/tools/cmd/goimports
go get golang.org/x/tools/cmd/gorename
go get github.com/nsf/gocode go get -u -v github.com/rogpeppe/godef
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v golang.org/x/tools/cmd/goimports
go get github.com/mdempsky/gocode
#done #done
) )
} }
@ -378,7 +377,7 @@ main() {
;; ;;
go) go)
install_golang install_golang
get_public_go_projects # get_public_go_projects
;; ;;
esac esac
} }