@@ -226,8 +226,8 @@ E2E_REGISTRY_IMAGE=localhost/e2e-test-registry:devel
226
226
image-registry : export GOOS=linux
227
227
image-registry : export GOARCH=amd64
228
228
image-registry : # # Build the testdata catalog used for e2e tests and push it to the image registry
229
- go build $(GO_BUILD_FLAGS ) -tags ' $(GO_BUILD_TAGS)' -ldflags ' $(GO_BUILD_LDFLAGS)' -gcflags ' $(GO_BUILD_GCFLAGS)' -asmflags ' $(GO_BUILD_ASMFLAGS)' -o ./testdata/registry/bin/registry ./testdata/registry/registry.go
230
- go build $(GO_BUILD_FLAGS ) -tags ' $(GO_BUILD_TAGS)' -ldflags ' $(GO_BUILD_LDFLAGS)' -gcflags ' $(GO_BUILD_GCFLAGS)' -asmflags ' $(GO_BUILD_ASMFLAGS)' -o ./testdata/push/bin/push ./testdata/push/push.go
229
+ go build $(GO_BUILD_FLAGS ) $( GO_BUILD_EXTRA_FLAGS ) -tags ' $(GO_BUILD_TAGS)' -ldflags ' $(GO_BUILD_LDFLAGS)' -gcflags ' $(GO_BUILD_GCFLAGS)' -asmflags ' $(GO_BUILD_ASMFLAGS)' -o ./testdata/registry/bin/registry ./testdata/registry/registry.go
230
+ go build $(GO_BUILD_FLAGS ) $( GO_BUILD_EXTRA_FLAGS ) -tags ' $(GO_BUILD_TAGS)' -ldflags ' $(GO_BUILD_LDFLAGS)' -gcflags ' $(GO_BUILD_GCFLAGS)' -asmflags ' $(GO_BUILD_ASMFLAGS)' -o ./testdata/push/bin/push ./testdata/push/push.go
231
231
$(CONTAINER_RUNTIME ) build -f ./testdata/Dockerfile -t $(E2E_REGISTRY_IMAGE ) ./testdata
232
232
$(CONTAINER_RUNTIME ) save $(E2E_REGISTRY_IMAGE ) | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
233
233
./testdata/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE ) $(E2E_REGISTRY_NAME ) $(E2E_REGISTRY_IMAGE )
@@ -240,7 +240,7 @@ image-registry: ## Build the testdata catalog used for e2e tests and push it to
240
240
.PHONY : test-e2e
241
241
test-e2e : KIND_CLUSTER_NAME := operator-controller-e2e
242
242
test-e2e : KUSTOMIZE_BUILD_DIR := config/overlays/e2e
243
- test-e2e : GO_BUILD_FLAGS := -cover
243
+ test-e2e : GO_BUILD_EXTRA_FLAGS := -cover
244
244
test-e2e : run image-registry e2e e2e-coverage kind-clean # HELP Run e2e test suite on local kind cluster
245
245
246
246
.PHONY : extension-developer-e2e
@@ -317,7 +317,7 @@ export VERSION_PATH := ${GIT_REPO}/internal/shared/version
317
317
export GO_BUILD_TAGS := containers_image_openpgp
318
318
export GO_BUILD_ASMFLAGS := all=-trimpath=$(PWD )
319
319
export GO_BUILD_GCFLAGS := all=-trimpath=$(PWD )
320
- export GO_BUILD_FLAGS :=
320
+ export GO_BUILD_EXTRA_FLAGS :=
321
321
export GO_BUILD_LDFLAGS := -s -w \
322
322
-X '$(VERSION_PATH ) .version=$(VERSION ) ' \
323
323
-X '$(VERSION_PATH ) .gitCommit=$(GIT_COMMIT ) ' \
@@ -326,7 +326,7 @@ BINARIES=operator-controller catalogd
326
326
327
327
.PHONY : $(BINARIES )
328
328
$(BINARIES ) :
329
- go build $(GO_BUILD_FLAGS ) -tags ' $(GO_BUILD_TAGS)' -ldflags ' $(GO_BUILD_LDFLAGS)' -gcflags ' $(GO_BUILD_GCFLAGS)' -asmflags ' $(GO_BUILD_ASMFLAGS)' -o $(BUILDBIN ) /$@ ./cmd/$@
329
+ go build $(GO_BUILD_FLAGS ) $( GO_BUILD_EXTRA_FLAGS ) -tags ' $(GO_BUILD_TAGS)' -ldflags ' $(GO_BUILD_LDFLAGS)' -gcflags ' $(GO_BUILD_GCFLAGS)' -asmflags ' $(GO_BUILD_ASMFLAGS)' -o $(BUILDBIN ) /$@ ./cmd/$@
330
330
331
331
.PHONY : build-deps
332
332
build-deps : manifests generate fmt
0 commit comments