mirror of
https://github.com/prymitive/karma
synced 2026-05-21 04:33:07 +00:00
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:
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user