From 5d36d25b9bff2250e6699b954bf6a87581f3c9dc Mon Sep 17 00:00:00 2001 From: Martin Weindel Date: Tue, 16 Jan 2024 15:41:03 +0100 Subject: [PATCH] added GO111MODULE=off again --- hack/update-codegen.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 9574629b..2316fa10 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -23,6 +23,10 @@ source "$GARDENER_HACK_DIR"/vgopath-setup.sh CODE_GEN_DIR=$(go list -m -f '{{.Dir}}' k8s.io/code-generator) +# We need to explicitly pass GO111MODULE=off to k8s.io/code-generator as it is significantly slower otherwise, +# see https://github.com/kubernetes/code-generator/issues/100. +export GO111MODULE=off + rm -f $GOPATH/bin/*-gen bash "${CODE_GEN_DIR}"/generate-internal-groups.sh \