From 005a0e732694206b98a41ec0060a5e8956e0cc76 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Mon, 12 Nov 2018 11:47:43 +0100 Subject: [PATCH] update go install --- .bashrc | 2 +- scripts/install.sh | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.bashrc b/.bashrc index 8143c12..a033dc8 100755 --- a/.bashrc +++ b/.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 diff --git a/scripts/install.sh b/scripts/install.sh index 996f703..8333e35 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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 }