forked from eksctl-io/eksctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-build-deps.sh
executable file
·28 lines (22 loc) · 1015 Bytes
/
install-build-deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh -eux
# Make sure to bump the version of EKSCTL_DEPENDENCIES_IMAGE if you make any changes here
if [ -z "${GOBIN+x}" ]; then
GOBIN="$(go env GOPATH)/bin"
fi
if [ "$(uname)" = "Darwin" ] ; then
OSARCH="darwin-amd64"
else
OSARCH="linux-amd64"
fi
env CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo
go install github.com/jteeuwen/go-bindata/go-bindata
go install github.com/vektra/mockery/cmd/mockery
go install github.com/weaveworks/github-release
go install golang.org/x/tools/cmd/stringer
# TODO: metalinter is archived, we should switch to github.com/golangci/golangci-lint
# Install metalinter
# Managing all linters that gometalinter uses with dep is going to take
# a lot of work, so we install all of those from the release tarball
METALINTER_VERSION="3.0.0"
curl --silent --location "https://github.com/alecthomas/gometalinter/releases/download/v${METALINTER_VERSION}/gometalinter-${METALINTER_VERSION}-${OSARCH}.tar.gz" \
| tar -x -z -C "${GOBIN}" --strip-components 1