diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-25 07:45:08 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-25 07:45:08 +0300 |
commit | 33723f8a85871797b6f38ab0340437a9b635f917 (patch) | |
tree | 9ff99365659f0e47673c9c8f5cd60610e88936f5 /Makefile.build.mk | |
parent | 575fec0d865d576c295aa7263d190744bd0a0328 (diff) |
Remove .GOPATH symlinks
Simplifies Makefiles to not use `.GOPATH` symlink.
Updates `test.yaml` to reuse the Go cache in between jobs instead of
removing and downloading all the dependencies for every job.
Changelog: other
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r-- | Makefile.build.mk | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile.build.mk b/Makefile.build.mk index 2656e62e..7a3d9543 100644 --- a/Makefile.build.mk +++ b/Makefile.build.mk @@ -6,11 +6,13 @@ GO_BUILD_TAGS := continuous_profiler_stackdriver all: gitlab-pages -setup: clean .GOPATH/.ok - go get github.com/wadey/gocovmerge@v0.0.0-20160331181800-b5bfa59ec0ad - go get github.com/golang/mock/mockgen@v1.3.1 - go get github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION) - go get github.com/jstemmer/go-junit-report +setup: .GOPATH/.ok + mkdir -p bin/ + # From https://marcofranssen.nl/manage-go-tools-via-go-modules/ + @cat ./tools.go | \ + grep _ | \ + awk -F'"' '{print $$2}' | \ + GOBIN=$(CURDIR)/bin xargs -tI % go install % generate-mocks: .GOPATH/.ok $Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks @@ -23,4 +25,3 @@ clean: gitlab-pages: build $Q cp -f ./bin/gitlab-pages . - |