We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fdda90 commit c1ff59cCopy full SHA for c1ff59c
Makefile
@@ -64,8 +64,9 @@ EXTRA_GOFLAGS ?=
64
MAKE_VERSION := $(shell $(MAKE) -v | head -n 1)
65
MAKE_EVIDENCE_DIR := .make_evidence
66
67
-ifneq ($(RACE_ENABLED),)
68
- GOTESTFLAGS ?= -race
+ifeq ($(RACE_ENABLED),true)
+ GOFLAGS += -race
69
+ GOTESTFLAGS += -race
70
endif
71
72
STORED_VERSION_FILE := VERSION
@@ -380,7 +381,7 @@ test-check:
380
381
.PHONY: test\#%
382
test\#%:
383
@echo "Running go test with -tags '$(TEST_TAGS)'..."
- @$(GO) test -mod=vendor -tags='$(TEST_TAGS)' -run $(subst .,/,$*) $(GO_PACKAGES)
384
+ @$(GO) test -mod=vendor $(GOTESTFLAGS) -tags='$(TEST_TAGS)' -run $(subst .,/,$*) $(GO_PACKAGES)
385
386
.PHONY: coverage
387
coverage:
0 commit comments