update go install
This commit is contained in:
parent
787f1416db
commit
005a0e7326
2
.bashrc
2
.bashrc
|
@ -116,5 +116,5 @@ if ! shopt -oq posix; then
|
|||
fi
|
||||
|
||||
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
|
||||
|
|
|
@ -254,15 +254,12 @@ get_dotfiles() {
|
|||
|
||||
# TODO: propbably dont really need the whole repo
|
||||
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_golang() {
|
||||
export GO_VERSION=1.7.4
|
||||
export GO_VERSION=1.11.2
|
||||
export GO_SRC=/usr/local/go
|
||||
|
||||
# if we are passing the version
|
||||
|
@ -282,10 +279,12 @@ install_golang() {
|
|||
go get github.com/golang/lint/golint
|
||||
go get golang.org/x/tools/cmd/cover
|
||||
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
|
||||
)
|
||||
}
|
||||
|
@ -378,7 +377,7 @@ main() {
|
|||
;;
|
||||
go)
|
||||
install_golang
|
||||
get_public_go_projects
|
||||
# get_public_go_projects
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue