Simplify update-gotools helper

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-02-17 01:16:47 +01:00
parent 408544d37d
commit ac03257e17
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,30 +1,29 @@
#!/bin/bash -ex #!/bin/bash
set -ex
set -o pipefail
export GOPATH="${HOME}/gocode" export GOPATH="${HOME}/gocode"
rm -rf ${GOPATH}
mkdir -p ${GOPATH}
# Re-Install gocode # Re-Install gocode
rm -rf "${GOPATH}/bin/gocode"
go get -u github.com/nsf/gocode go get -u github.com/nsf/gocode
# Re-Install gometalinter # Re-Install gometalinter
rm -rf "${GOPATH}/bin/gometalinter"
go get -u github.com/alecthomas/gometalinter go get -u github.com/alecthomas/gometalinter
${GOPATH}/bin/gometalinter --install --update ${GOPATH}/bin/gometalinter --install --update
# Re-Install godebug # Re-Install godebug
rm -rf "${GOPATH}/bin/godebug"
go get -u github.com/mailgun/godebug go get -u github.com/mailgun/godebug
# Re-Install godep # Re-Install godep
rm -rf "${GOPATH}/bin/godep"
go get -u github.com/tools/godep go get -u github.com/tools/godep
# Re-Install go-bindata # Re-Install go-bindata
rm -rf "${GOPATH}/bin/go-bindata"
go get -u github.com/jteeuwen/go-bindata/... go get -u github.com/jteeuwen/go-bindata/...
# Re-Install hclfmt # Re-Install hclfmt
rm -rf "${GOPATH}/bin/hclfmt"
go get -u github.com/fatih/hclfmt go get -u github.com/fatih/hclfmt
# Ensure vim-go can work # Ensure vim-go can work