Skip to content

Commit 48b9a79

Browse files
Merge pull request kube-reporting#1126 from timflannagan1/generalize-repo-package-path
hack,Makefile: Support overriding the script package path in the update-codegen script.
2 parents 827d0b8 + c9526f3 commit 48b9a79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ update-codegen: $(CODEGEN_OUTPUT_GO_FILES)
217217
$(CODEGEN_OUTPUT_GO_FILES): $(CODEGEN_SOURCE_GO_FILES)
218218

219219
verify-codegen:
220-
./hack/verify-codegen.sh
220+
SCRIPT_PACKAGE=$(GO_PKG) ./hack/verify-codegen.sh

hack/update-codegen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -o errexit
1818
set -o nounset
1919
set -o pipefail
2020

21-
SCRIPT_PACKAGE=github.com/operator-framework/operator-metering
21+
SCRIPT_PACKAGE=${SCRIPT_PACKAGE:-"github.com/operator-framework/operator-metering"}
2222
SCRIPT_ROOT="$(realpath $(dirname ${BASH_SOURCE[0]})/..)"
2323
CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${SCRIPT_ROOT}; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo k8s.io/code-generator)}
2424

0 commit comments

Comments
 (0)