From 818dc29f6eaf3a3065695721abb3f110305f6e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Thu, 19 Oct 2023 11:39:24 +0200 Subject: [PATCH] chore: rename hack folder to .hack (#123) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- {hack => .hack}/boilerplate.go.txt | 0 {hack => .hack}/docs/catalog/main.go | 0 {hack => .hack}/docs/jp/main.go | 0 Makefile | 14 +++++++------- 4 files changed, 7 insertions(+), 7 deletions(-) rename {hack => .hack}/boilerplate.go.txt (100%) rename {hack => .hack}/docs/catalog/main.go (100%) rename {hack => .hack}/docs/jp/main.go (100%) diff --git a/hack/boilerplate.go.txt b/.hack/boilerplate.go.txt similarity index 100% rename from hack/boilerplate.go.txt rename to .hack/boilerplate.go.txt diff --git a/hack/docs/catalog/main.go b/.hack/docs/catalog/main.go similarity index 100% rename from hack/docs/catalog/main.go rename to .hack/docs/catalog/main.go diff --git a/hack/docs/jp/main.go b/.hack/docs/jp/main.go similarity index 100% rename from hack/docs/jp/main.go rename to .hack/docs/jp/main.go diff --git a/Makefile b/Makefile index 9dab732c..be7ff1a7 100644 --- a/Makefile +++ b/Makefile @@ -169,19 +169,19 @@ $(PACKAGE_SHIM): $(GOPATH_SHIM) codegen-client: $(PACKAGE_SHIM) $(CLIENT_GEN) $(LISTER_GEN) $(INFORMER_GEN) ## Generate client, informers and listers @echo Generate clientset... >&2 @GOPATH=$(GOPATH_SHIM) $(CLIENT_GEN) \ - --go-header-file ./hack/boilerplate.go.txt \ + --go-header-file ./.hack/boilerplate.go.txt \ --clientset-name versioned \ --output-package $(CLIENTSET_PACKAGE) \ --input-base "" \ --input $(INPUT_DIRS) @echo Generate listers... >&2 @GOPATH=$(GOPATH_SHIM) $(LISTER_GEN) \ - --go-header-file ./hack/boilerplate.go.txt \ + --go-header-file ./.hack/boilerplate.go.txt \ --output-package $(LISTERS_PACKAGE) \ --input-dirs $(INPUT_DIRS) @echo Generate informers... >&2 @GOPATH=$(GOPATH_SHIM) $(INFORMER_GEN) \ - --go-header-file ./hack/boilerplate.go.txt \ + --go-header-file ./.hack/boilerplate.go.txt \ --output-package $(INFORMERS_PACKAGE) \ --input-dirs $(INPUT_DIRS) \ --versioned-clientset-package $(CLIENTSET_PACKAGE)/versioned \ @@ -191,14 +191,14 @@ codegen-client: $(PACKAGE_SHIM) $(CLIENT_GEN) $(LISTER_GEN) $(INFORMER_GEN) ## G codegen-register: $(PACKAGE_SHIM) $(REGISTER_GEN) ## Generate types registrations @echo Generate registration... >&2 @GOPATH=$(GOPATH_SHIM) $(REGISTER_GEN) \ - --go-header-file=./hack/boilerplate.go.txt \ + --go-header-file=./.hack/boilerplate.go.txt \ --input-dirs=$(INPUT_DIRS) .PHONY: codegen-deepcopy codegen-deepcopy: $(PACKAGE_SHIM) $(DEEPCOPY_GEN) ## Generate deep copy functions @echo Generate deep copy functions... >&2 @GOPATH=$(GOPATH_SHIM) $(DEEPCOPY_GEN) \ - --go-header-file=./hack/boilerplate.go.txt \ + --go-header-file=./.hack/boilerplate.go.txt \ --input-dirs=$(INPUT_DIRS) \ --output-file-base=zz_generated.deepcopy @@ -227,12 +227,12 @@ codegen-cli-docs: $(CLI_BIN) ## Generate CLI docs codegen-jp-docs: ## Generate JP docs @echo Generate jp docs... >&2 @rm -rf docs/user/jp && mkdir -p docs/user/jp - @go run ./hack/docs/jp/main.go > docs/user/jp/functions.md + @go run ./.hack/docs/jp/main.go > docs/user/jp/functions.md .PHONY: codegen-catalog codegen-catalog: ## Generate policy catalog @echo Generate policy catalog... >&2 - @go run ./hack/docs/catalog/main.go + @go run ./.hack/docs/catalog/main.go .PHONY: codegen-docs codegen-docs: codegen-api-docs codegen-cli-docs codegen-jp-docs codegen-catalog ## Generate docs