-
Notifications
You must be signed in to change notification settings - Fork 48
/
prerequisites.sh
executable file
·26 lines (23 loc) · 1.17 KB
/
prerequisites.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
#!/bin/bash -ex
GO_GET_FLAGS="-u -v"
# Workaround for https://github.com/golang/go/issues/30515
mkdir -pv ./.sparta
cd ./.sparta
# Prerequisites
GO111MODULE=on go get $GO_GET_FLAGS github.com/magefile/mage
GO111MODULE=on go get $GO_GET_FLAGS github.com/hhatto/gocloc
GO111MODULE=on go get $GO_GET_FLAGS github.com/mholt/archiver
GO111MODULE=on go get $GO_GET_FLAGS github.com/pkg/browser
GO111MODULE=on go get $GO_GET_FLAGS github.com/otiai10/copy
GO111MODULE=on go get $GO_GET_FLAGS github.com/pkg/errors
GO111MODULE=on go get $GO_GET_FLAGS honnef.co/go/tools/cmd/...
GO111MODULE=on go get $GO_GET_FLAGS github.com/atombender/go-jsonschema/...
# Static analysis
GO111MODULE=on go get $GO_GET_FLAGS honnef.co/go/tools/cmd/...
GO111MODULE=on go get $GO_GET_FLAGS golang.org/x/tools/cmd/goimports
GO111MODULE=on go get $GO_GET_FLAGS github.com/fzipp/gocyclo
GO111MODULE=on go get $GO_GET_FLAGS golang.org/x/lint/golint
GO111MODULE=on go get $GO_GET_FLAGS github.com/securego/gosec/cmd/gosec
GO111MODULE=on go get $GO_GET_FLAGS github.com/alexkohler/prealloc
GO111MODULE=on go get $GO_GET_FLAGS github.com/client9/misspell/cmd/misspell
GO111MODULE=on go get -u github.com/hhatto/gocloc/cmd/gocloc