diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-25 03:44:27 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-08-25 03:44:27 +0300 |
commit | 76eadf2e34352edaa9f7d6be746fc8564b9bc9ef (patch) | |
tree | a2f220293450c7ced931090c37c138b478bdef96 /Makefile.build.mk | |
parent | 84a77c9ef1766b81510e06d7c9d77129830b029f (diff) |
build: move tools/dev dependencies to a separate go.mod
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r-- | Makefile.build.mk | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile.build.mk b/Makefile.build.mk index 90f8b5ac..3d13f47a 100644 --- a/Makefile.build.mk +++ b/Makefile.build.mk @@ -6,11 +6,8 @@ all: gitlab-pages setup: .GOPATH/.ok mkdir -p bin/ - # Installing dev tools defined in tools.go - @cat ./tools.go | \ - grep _ | \ - awk -F'"' '{print $$2}' | \ - GOBIN=$(CURDIR)/bin xargs -tI % go install % + # Installing dev tools defined in go.tools + awk '/_/ {print $$2}' ./tools/main.go | xargs -tI % go install ${V:+-v -x} -modfile=tools/go.mod -mod=mod % generate-mocks: .GOPATH/.ok $Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks |