From 246cb336723296886b8b6fc17d51bba5163e63cb Mon Sep 17 00:00:00 2001 From: Dan Childers Date: Wed, 15 Jul 2026 09:09:24 -0400 Subject: [PATCH] Explicitly set -mod flag to mod in OTE build This is a continuation of work completed in #274 and #281. A separate go module was added alongside `openstack-test` in order to deal with ginkgo version conflicts. The separate OTE module is purposely not vendored, because doing so would introduce duplicate files and bloat the size of the git objects. `rhel-9-release-golang-1.23-openshift-4.16` forces vendoring through the GOFLAGS env var. So, to accomplish building the OTE binary without vendoring, an explicity command line option is required. Signed-off-by: Dan Childers --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b10b75eba..04edca71b 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ TESTS_EXT_BINARY := bin/openstack-test-tests-ext tests-ext-build: @echo "Building OTE test extension binary..." @mkdir -p bin - cd tests-extension && GOTOOLCHAIN=auto GOSUMDB=sum.golang.org go build -o $(CURDIR)/$(TESTS_EXT_BINARY) ./cmd/extension + cd tests-extension && GOTOOLCHAIN=auto GOSUMDB=sum.golang.org go build -mod=mod -o $(CURDIR)/$(TESTS_EXT_BINARY) ./cmd/extension @echo "Extension binary built: $(TESTS_EXT_BINARY)" .PHONY: extension