File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,16 @@ LIBGIT2_IMG ?= ghcr.io/fluxcd/golang-with-libgit2
7
7
LIBGIT2_TAG ?= libgit2-1.3.1
8
8
9
9
# Allows for defining additional Go test args, e.g. '-tags integration'.
10
- GO_TEST_ARGS ?=
10
+ GO_TEST_ARGS ?= -race
11
11
12
12
# Allows for defining additional Docker buildx arguments,
13
13
# e.g. '--push'.
14
14
BUILD_ARGS ?=
15
15
# Architectures to build images for
16
16
BUILD_PLATFORMS ?= linux/amd64,linux/arm64,linux/arm/v7
17
17
18
- # Go additional tag arguments, e.g. 'integration'
18
+ # Go additional tag arguments, e.g. 'integration',
19
+ # this is append to the tag arguments required for static builds
19
20
GO_TAGS ?=
20
21
21
22
# Produce CRDs that work back to Kubernetes 1.16
@@ -111,7 +112,7 @@ ifeq ($(shell uname -s),Darwin)
111
112
endif
112
113
113
114
test-api : # # Run api tests
114
- cd api; go test ./... -coverprofile cover.out
115
+ cd api; go test $( GO_TEST_ARGS ) ./... -coverprofile cover.out
115
116
116
117
run : $(LIBGIT2 ) generate fmt vet manifests # # Run against the configured Kubernetes cluster in ~/.kube/config
117
118
go run $(GO_STATIC_FLAGS ) ./main.go
You can’t perform that action at this time.
0 commit comments