feat(build): use Go modules to install all cli tools

Using Go modules allows to pin versions in go.mod, so dependency management tools can track those.
Right now make targets will install latest version and travis.yml downloads binaries from github, moving to modules simplifies all of this.
tools.go is needed so that go build doesn't strip those dependencies from go.mod
This commit is contained in:
Łukasz Mierzwa
2019-01-16 09:55:15 +00:00
parent fca9c2d97a
commit d3ff3a4806
5 changed files with 164 additions and 24 deletions

View File

@@ -24,13 +24,13 @@ endif
.build/deps-build-go.ok:
@mkdir -p .build
GO111MODULE=off go get -u github.com/go-bindata/go-bindata/...
GO111MODULE=off go get -u github.com/elazarl/go-bindata-assetfs/...
GO111MODULE=on go install github.com/go-bindata/go-bindata/...
GO111MODULE=on go install github.com/elazarl/go-bindata-assetfs/...
touch $@
.build/deps-lint-go.ok:
@mkdir -p .build
GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint
touch $@
.build/deps-build-node.ok: ui/package.json ui/yarn.lock