From d676180881b2eb5a807fb15e6568d30eb7d47581 Mon Sep 17 00:00:00 2001 From: Tommy Reilly Date: Thu, 14 Aug 2025 09:29:23 -0400 Subject: [PATCH] golabels: Remove -C flag from golabels test build commands The -C flag was causing the test binaries to be created in the wrong directory (./interpreter/golabels/integrationtests/support/ instead of ./support/). This fix removes the -C flag and uses the package path directly, ensuring the binaries are created in the correct location. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a094517b3..2145ea39f 100644 --- a/Makefile +++ b/Makefile @@ -124,13 +124,13 @@ TEST_INTEGRATION_BINARY_DIRS := tracer processmanager/ebpf support # These binaries are named ".test" to get included into bluebox initramfs support/golbls_1_23.test: generate ebpf - CGO_ENABLED=0 GOTOOLCHAIN=go1.23.7 go test -C ./interpreter/golabels/integrationtests -c -trimpath -tags $(GO_TAGS),nocgo,integration -o $@ + CGO_ENABLED=0 GOTOOLCHAIN=go1.23.7 go test ./interpreter/golabels/integrationtests -c -trimpath -tags $(GO_TAGS),nocgo,integration -o $@ support/golbls_1_24.test: generate ebpf - CGO_ENABLED=0 GOTOOLCHAIN=go1.24.1 go test -C ./interpreter/golabels/integrationtests -c -trimpath -tags $(GO_TAGS),nocgo,integration -o $@ + CGO_ENABLED=0 GOTOOLCHAIN=go1.24.1 go test ./interpreter/golabels/integrationtests -c -trimpath -tags $(GO_TAGS),nocgo,integration -o $@ support/golbls_cgo.test: generate ebpf - CGO_ENABLED=1 GOTOOLCHAIN=go1.24.1 go test -C ./interpreter/golabels/integrationtests -c -ldflags '-extldflags "-static"' -trimpath -tags $(GO_TAGS),withcgo,integration -o $@ + CGO_ENABLED=1 GOTOOLCHAIN=go1.24.1 go test ./interpreter/golabels/integrationtests -c -ldflags '-extldflags "-static"' -trimpath -tags $(GO_TAGS),withcgo,integration -o $@ integration-test-binaries: support/golbls_1_23.test support/golbls_1_24.test support/golbls_cgo.test $(foreach test_name, $(TEST_INTEGRATION_BINARY_DIRS), \