From 33723f8a85871797b6f38ab0340437a9b635f917 Mon Sep 17 00:00:00 2001 From: Jaime Martinez Date: Thu, 25 Mar 2021 15:45:08 +1100 Subject: 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 --- Makefile.util.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile.util.mk') diff --git a/Makefile.util.mk b/Makefile.util.mk index 5d5355e4..227f0d56 100644 --- a/Makefile.util.mk +++ b/Makefile.util.mk @@ -10,11 +10,11 @@ lint: .GOPATH/.ok bin/golangci-lint $Q ./bin/golangci-lint run ./... --out-format $(OUT_FORMAT) $(LINT_FLAGS) | tee ${REPORT_FILE} test: .GOPATH/.ok gitlab-pages - rm tests.out || true - go test $(if $V,-v) $(allpackages) 2>&1 | tee tests.out + rm -f tests.out + go test $(if $V,-v) ./... ${ARGS} 2>&1 | tee tests.out race: .GOPATH/.ok gitlab-pages - CGO_ENABLED=1 go test -race $(if $V,-v) $(allpackages) + CGO_ENABLED=1 go test -race $(if $V,-v) ./... acceptance: .GOPATH/.ok gitlab-pages go test $(if $V,-v) ./test/acceptance ${ARGS} 2>&1 | tee tests.out -- cgit v1.2.3