Skip to content

Commit

Permalink
Codegen script permission fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelattwood committed Sep 25, 2023
1 parent ffc3e9d commit b061a45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ bootConfigSrc := $(shell find cmd/nats-boot-config/ pkg/bootconfig/ -name "*.go"
# You might override this so as to use a more recent version, to update old
# generated imports, and so migrate away from old import paths and get back to
# a consistent import tree.
codeGeneratorDir ?=
CODEGEN_DIR := $(shell go list -m -f '{{.Dir}}' k8s.io/code-generator)
CODEGEN_SCRIPT := $(CODEGEN_DIR)/generate-groups.sh

default:
# Try these (read Makefile for more recipes):
Expand All @@ -29,7 +30,9 @@ default:

pkg/jetstream/generated pkg/jetstream/apis/jetstream/v1beta2/zz_generated.deepcopy.go: fetch-modules $(jetstreamGenIn) pkg/k8scodegen/file-header.txt
rm -rf pkg/jetstream/generated
D="$(codeGeneratorDir)"; : "$${D:=`go list -m -f '{{.Dir}}' k8s.io/code-generator`}"; GOFLAGS='' bash "$$D/generate-groups.sh" all \
# Temporary fix until we migrate to kube_codegen.sh
chmod u+x "$(CODEGEN_DIR)/generate-internal-groups.sh"
GOFLAGS='' bash "$(CODEGEN_SCRIPT)" all \
github.com/nats-io/nack/pkg/jetstream/generated \
github.com/nats-io/nack/pkg/jetstream/apis \
"jetstream:v1beta2" \
Expand Down
4 changes: 2 additions & 2 deletions pkg/jetstream/generated/informers/externalversions/factory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b061a45

Please sign in to comment.