aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-06-02 17:34:11 +0200
committerGitHub <noreply@github.com>2021-06-02 17:34:11 +0200
commitc1ff59c1cd51da6fcc47d31ca84932e9bccced92 (patch)
treefb408750d4c9cd055b50f76b10a9c596152452e3 /Makefile
parent9fdda9008534c53e399adc36fe1a880bbe41ce56 (diff)
downloadgitea-c1ff59c1cd51da6fcc47d31ca84932e9bccced92.tar.gz
gitea-c1ff59c1cd51da6fcc47d31ca84932e9bccced92.zip
use "true" for RACE_ENABLED (#15261)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6304508fb1..1fd4216dac 100644
--- a/Makefile
+++ b/Makefile
@@ -64,8 +64,9 @@ EXTRA_GOFLAGS ?=
MAKE_VERSION := $(shell $(MAKE) -v | head -n 1)
MAKE_EVIDENCE_DIR := .make_evidence
-ifneq ($(RACE_ENABLED),)
- GOTESTFLAGS ?= -race
+ifeq ($(RACE_ENABLED),true)
+ GOFLAGS += -race
+ GOTESTFLAGS += -race
endif
STORED_VERSION_FILE := VERSION
@@ -380,7 +381,7 @@ test-check:
.PHONY: test\#%
test\#%:
@echo "Running go test with -tags '$(TEST_TAGS)'..."
- @$(GO) test -mod=vendor -tags='$(TEST_TAGS)' -run $(subst .,/,$*) $(GO_PACKAGES)
+ @$(GO) test -mod=vendor $(GOTESTFLAGS) -tags='$(TEST_TAGS)' -run $(subst .,/,$*) $(GO_PACKAGES)
.PHONY: coverage
coverage: