2017-02-17 00:16:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-11-18 13:58:52 +00:00
|
|
|
set -eux
|
2017-02-17 00:16:47 +00:00
|
|
|
set -o pipefail
|
2016-07-21 13:48:49 +00:00
|
|
|
|
|
|
|
export GOPATH="${HOME}/gocode"
|
2017-11-18 13:58:52 +00:00
|
|
|
INSTALLS=(
|
|
|
|
# Go-dev related tools
|
|
|
|
'github.com/alecthomas/gometalinter'
|
|
|
|
'github.com/golang/dep/cmd/dep'
|
|
|
|
'github.com/mailgun/godebug'
|
|
|
|
'github.com/nsf/gocode'
|
|
|
|
'github.com/shuLhan/go-bindata/...'
|
|
|
|
'github.com/tools/godep'
|
|
|
|
|
|
|
|
# Vault related tools
|
|
|
|
'github.com/hashicorp/vault'
|
|
|
|
'github.com/Luzifer/vault2env'
|
|
|
|
'github.com/Luzifer/vault-patch'
|
2018-02-10 18:06:15 +00:00
|
|
|
'github.com/Luzifer/vault-user-token'
|
2017-11-18 13:58:52 +00:00
|
|
|
|
|
|
|
# Other tools
|
|
|
|
'github.com/fatih/hclfmt'
|
|
|
|
'github.com/fiatjaf/jiq/cmd/jiq'
|
|
|
|
'github.com/hashicorp/packer'
|
2018-01-18 13:19:39 +00:00
|
|
|
'github.com/Luzifer/git-changerelease'
|
2017-11-18 13:58:52 +00:00
|
|
|
'github.com/Luzifer/password'
|
2017-12-02 21:43:38 +00:00
|
|
|
'github.com/Luzifer/share'
|
2018-01-18 13:19:39 +00:00
|
|
|
'github.com/Luzifer/short_path'
|
2017-12-15 11:12:24 +00:00
|
|
|
'github.com/Luzifer/slugify'
|
|
|
|
'github.com/Luzifer/str2hex'
|
2018-01-18 13:19:39 +00:00
|
|
|
'github.com/Luzifer/worktime'
|
2018-02-10 11:14:23 +00:00
|
|
|
'github.com/peco/peco/cmd/peco'
|
2017-11-18 13:58:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
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-18 13:58:52 +00:00
|
|
|
for gp in ${INSTALLS[@]}; do
|
|
|
|
go get ${gp} &
|
|
|
|
done
|
2017-11-01 10:33:02 +00:00
|
|
|
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
|
|
|
|