From 3d28a444cfbc6ac25510d3a6a524e9d582132de3 Mon Sep 17 00:00:00 2001 From: David Simansky Date: Fri, 17 Jan 2025 12:00:06 +0100 Subject: [PATCH] Don't source library.sh in test generator --- test/test-reconciler-codegen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test-reconciler-codegen.sh b/test/test-reconciler-codegen.sh index 151d1321b..c1c35c24b 100755 --- a/test/test-reconciler-codegen.sh +++ b/test/test-reconciler-codegen.sh @@ -18,7 +18,9 @@ set -o errexit set -o nounset set -o pipefail -source $(dirname $0)/../vendor/knative.dev/hack/library.sh +#source $(dirname $0)/../vendor/knative.dev/hack/library.sh +[[ ! -v REPO_ROOT_DIR ]] && REPO_ROOT_DIR="$(git rev-parse --show-toplevel)" +readonly REPO_ROOT_DIR 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)}