2017-02-17 00:16:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
set -o pipefail
|
2016-07-21 13:48:49 +00:00
|
|
|
|
|
|
|
export GOPATH="${HOME}/gocode"
|
2017-02-17 00:16:47 +00:00
|
|
|
rm -rf ${GOPATH}
|
|
|
|
mkdir -p ${GOPATH}
|
2016-07-21 13:48:49 +00:00
|
|
|
|
2017-04-13 20:45:57 +00:00
|
|
|
# Create `.gopath` file for $PATH detection
|
|
|
|
touch ${GOPATH}/.gopath
|
|
|
|
|
2017-11-01 10:33:02 +00:00
|
|
|
# Install Go-dev related tools
|
|
|
|
go get -u github.com/nsf/gocode &
|
|
|
|
go get -u github.com/alecthomas/gometalinter &
|
|
|
|
go get -u github.com/mailgun/godebug &
|
|
|
|
go get -u github.com/tools/godep &
|
|
|
|
go get -u github.com/golang/dep/cmd/dep &
|
|
|
|
go get -u github.com/shuLhan/go-bindata/... &
|
|
|
|
wait
|
|
|
|
|
|
|
|
# Ensure installed tools can work
|
2016-07-21 13:48:49 +00:00
|
|
|
${GOPATH}/bin/gometalinter --install --update
|
2017-11-01 10:33:02 +00:00
|
|
|
vim +:GoInstallBinaries +:qall
|
2016-07-21 13:48:49 +00:00
|
|
|
|
2016-08-11 21:35:04 +00:00
|
|
|
# Re-Install hclfmt
|
2017-11-01 10:33:02 +00:00
|
|
|
go get -u github.com/fatih/hclfmt &
|
2017-01-23 09:23:22 +00:00
|
|
|
|
|
|
|
# Normally update non-version dependent tools
|
2017-11-01 10:33:02 +00:00
|
|
|
go get -u github.com/fiatjaf/jiq/cmd/jiq &
|
|
|
|
|
|
|
|
# Install vault related tools
|
|
|
|
go get -u github.com/hashicorp/vault &
|
|
|
|
go get -u github.com/Luzifer/vault-patch &
|
|
|
|
go get -u github.com/Luzifer/vault2env &
|
|
|
|
|
|
|
|
# Install own tools
|
|
|
|
go get -u github.com/Luzifer/password &
|
2017-05-26 19:15:28 +00:00
|
|
|
|
2017-11-01 10:33:02 +00:00
|
|
|
# Install packer
|
|
|
|
go get -u github.com/hashicorp/packer &
|
2017-07-03 20:02:13 +00:00
|
|
|
|
2017-11-01 10:33:02 +00:00
|
|
|
wait
|