Skip to content

Commit 15f7104

Browse files
committed
ci: use CGO for tests to enable race detector
``` go: -race requires cgo; enable cgo by setting CGO_ENABLED=1 ``` We're explicitly using CGO on macOS now for FSEvents support and purposefully NOT using CGO on other platforms since we don't need it. The race detector (`-race`) requires it, however, so for the e2e make task, it should alway be on. Signed-off-by: Milas Bowman <[email protected]>
1 parent eb1c798 commit 15f7104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ install: binary
6161

6262
.PHONY: e2e-compose
6363
e2e-compose: ## Run end to end local tests in plugin mode. Set E2E_TEST=TestName to run a single test
64-
go test $(TEST_FLAGS) $(TEST_COVERAGE_FLAGS) -count=1 ./pkg/e2e
64+
CGO_ENABLED=1 go test $(TEST_FLAGS) $(TEST_COVERAGE_FLAGS) -count=1 ./pkg/e2e
6565

6666
.PHONY: e2e-compose-standalone
6767
e2e-compose-standalone: ## Run End to end local tests in standalone mode. Set E2E_TEST=TestName to run a single test

0 commit comments

Comments
 (0)