@@ -16,8 +16,8 @@ GO_LDFLAGS=-ldflags "-X $(IMPORT_PATH)/pkg/version.Version=$(VERSION) \
1616
1717# We need to use the codegen tag when building and testing because the
1818# aws-sdk-go/private/model/api package is gated behind a build tag "codegen"...
19- GO_TAGS =-tags codegen
20- GO_LOCAL_TAGS =-modfile =go.local.mod $(GO_TAGS )
19+ GO_CMD_FLAGS =-tags codegen
20+ GO_CMD_LOCAL_FLAGS =-modfile =go.local.mod $(GO_CMD_FLAGS )
2121
2222.PHONY : all local-build-ack-generate build-ack-generate local-build-controller \
2323 build-controller test local-test build-controller-image \
@@ -27,12 +27,12 @@ all: test
2727
2828build-ack-generate : # # Build ack-generate binary
2929 @echo -n " building ack-generate ... "
30- @go build ${GO_TAGS } ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
30+ @go build ${GO_CMD_FLAGS } ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
3131 @echo " ok."
3232
3333local-build-ack-generate : # # Build ack-generate binary using the local go.mod
3434 @echo -n " building ack-generate ... "
35- @go build ${GO_LOCAL_TAGS } ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
35+ @go build ${GO_CMD_LOCAL_FLAGS } ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
3636 @echo " ok."
3737
3838build-controller : build-ack-generate # # Generate controller code for SERVICE
@@ -56,10 +56,10 @@ check-versions: ## Checks the code-generator version matches the runtime depende
5656 @./scripts/check-versions.sh $(VERSION )
5757
5858test : # # Run code tests
59- go test ${GO_TAGS } ./...
59+ go test ${GO_CMD_FLAGS } ./...
6060
6161local-test : # # Run code tests using the local go.mod
62- go test ${GO_LOCAL_TAGS } ./...
62+ go test ${GO_CMD_LOCAL_FLAGS } ./...
6363
6464help : # # Show this help.
6565 @grep -F -h " ##" $(MAKEFILE_LIST ) | grep -F -v grep | sed -e ' s/\\$$//' \
0 commit comments