From e54947f55885e1fdabd59fb35a9d1e523fd35a7d Mon Sep 17 00:00:00 2001 From: David Simansky Date: Fri, 17 Jan 2025 15:36:16 +0100 Subject: [PATCH] Drop vendor in both scripts --- hack/update-codegen.sh | 2 ++ test/test-reconciler-codegen.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index a50b18f59..d159c77fd 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -20,6 +20,8 @@ set -o pipefail source $(dirname $0)/../vendor/knative.dev/hack/codegen-library.sh +export GOFLAGS=-mod= + echo "=== Update Codegen for $MODULE_NAME" group "Kubernetes Codegen" diff --git a/test/test-reconciler-codegen.sh b/test/test-reconciler-codegen.sh index d01724edd..f5ad9089d 100755 --- a/test/test-reconciler-codegen.sh +++ b/test/test-reconciler-codegen.sh @@ -21,7 +21,7 @@ set -o pipefail source $(dirname $0)/../vendor/knative.dev/hack/library.sh # Make sure script doesn't have conflict with other tooling -export GOFLAGS="-mod=" +export GOFLAGS=-mod= CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${REPO_ROOT_DIR}; ls -d -1 $(dirname $0)/../vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)} KNATIVE_CODEGEN_PKG=${KNATIVE_CODEGEN_PKG:-$(cd ${REPO_ROOT_DIR}; ls -d -1 $(dirname $0)/../vendor/knative.dev/pkg 2>/dev/null || echo ../pkg)}