cfg/bin/update-gotools

39 lines
765 B
Text
Raw Normal View History

#!/bin/bash
set -ex
set -o pipefail
2016-07-21 13:48:49 +00:00
export GOPATH="${HOME}/gocode"
rm -rf ${GOPATH}
mkdir -p ${GOPATH}
2016-07-21 13:48:49 +00:00
# Create `.gopath` file for $PATH detection
touch ${GOPATH}/.gopath
2016-07-21 13:48:49 +00:00
# Re-Install gocode
go get -u github.com/nsf/gocode
# Re-Install gometalinter
go get -u github.com/alecthomas/gometalinter
${GOPATH}/bin/gometalinter --install --update
# Re-Install godebug
go get -u github.com/mailgun/godebug
# Re-Install godep
go get -u github.com/tools/godep
# Re-Install go-bindata
go get -u github.com/jteeuwen/go-bindata/...
2016-08-11 21:35:04 +00:00
# Re-Install hclfmt
go get -u github.com/fatih/hclfmt
2016-07-21 13:48:49 +00:00
# Ensure vim-go can work
vim +:GoInstallBinaries +:qall
2017-01-23 09:23:22 +00:00
# Normally update non-version dependent tools
go get -u github.com/fiatjaf/jiq/cmd/jiq
go get -u github.com/hashicorp/vault