mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-27 00:23:41 +09:00 
			
		
		
		
	use "true" for RACE_ENABLED (#15261)
This commit is contained in:
		
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							| @@ -64,8 +64,9 @@ EXTRA_GOFLAGS ?= | |||||||
| MAKE_VERSION := $(shell $(MAKE) -v | head -n 1) | MAKE_VERSION := $(shell $(MAKE) -v | head -n 1) | ||||||
| MAKE_EVIDENCE_DIR := .make_evidence | MAKE_EVIDENCE_DIR := .make_evidence | ||||||
|  |  | ||||||
| ifneq ($(RACE_ENABLED),) | ifeq ($(RACE_ENABLED),true) | ||||||
| 	GOTESTFLAGS ?= -race | 	GOFLAGS += -race | ||||||
|  | 	GOTESTFLAGS += -race | ||||||
| endif | endif | ||||||
|  |  | ||||||
| STORED_VERSION_FILE := VERSION | STORED_VERSION_FILE := VERSION | ||||||
| @@ -380,7 +381,7 @@ test-check: | |||||||
| .PHONY: test\#% | .PHONY: test\#% | ||||||
| test\#%: | test\#%: | ||||||
| 	@echo "Running go test with -tags '$(TEST_TAGS)'..." | 	@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 | .PHONY: coverage | ||||||
| coverage: | coverage: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user