Skip to content

Commit

Permalink
Merge pull request kube-reporting#1126 from timflannagan1/generalize-…
Browse files Browse the repository at this point in the history
…repo-package-path

hack,Makefile: Support overriding the script package path in the update-codegen script.
  • Loading branch information
openshift-merge-robot authored Mar 18, 2020
2 parents 827d0b8 + c9526f3 commit 48b9a79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@ update-codegen: $(CODEGEN_OUTPUT_GO_FILES)
$(CODEGEN_OUTPUT_GO_FILES): $(CODEGEN_SOURCE_GO_FILES)

verify-codegen:
./hack/verify-codegen.sh
SCRIPT_PACKAGE=$(GO_PKG) ./hack/verify-codegen.sh
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o nounset
set -o pipefail

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

Expand Down

0 comments on commit 48b9a79

Please sign in to comment.