Skip to content

Commit b0d2c9d

Browse files
authored
Merge pull request #268 from g-gaston/fix-deep-copy-no-gcc
Disable CGO when running generate deep copy
2 parents 0f21ecd + 7fb2411 commit b0d2c9d

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)