Skip to content

Commit 7fb2411

Browse files
committed
Disable CGO when running generate deep copy
This should fix the job that periodically builds images, since the container where the releas staging target is run doesn't have gcc installed.
1 parent 0f21ecd commit 7fb2411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ DEEPCOPY_GEN_INPUTS=$(shell find ./api -name "*test*" -prune -o -name "*zz_gener
149149
.PHONY: generate-deepcopy
150150
generate-deepcopy: $(DEEPCOPY_GEN_TARGETS) ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
151151
api/%/zz_generated.deepcopy.go: $(CONTROLLER_GEN) $(DEEPCOPY_GEN_INPUTS)
152-
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
152+
CGO_ENABLED=0 $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
153153

154154
MANIFEST_GEN_INPUTS=$(shell find ./api ./controllers -type f -name "*test*" -prune -o -name "*zz_generated*" -prune -o -print)
155155
# Using a flag file here as config output is too complicated to be a target.

0 commit comments

Comments
 (0)