From 441858fd77cbf059d87519a6ddd13d5ced17ba3f Mon Sep 17 00:00:00 2001 From: jetstack-bot Date: Mon, 15 Jan 2024 19:08:57 +0000 Subject: [PATCH] BOT: run 'make upgrade-klone' and 'make generate' Signed-off-by: jetstack-bot --- klone.yaml | 12 ++++++------ .../_shared/generate-verify/{01_mod.mk => 00_mod.mk} | 5 +++++ make/_shared/help/help.sh | 8 ++++---- make/_shared/tools/00_mod.mk | 8 +++++++- 4 files changed, 22 insertions(+), 11 deletions(-) rename make/_shared/generate-verify/{01_mod.mk => 00_mod.mk} (79%) diff --git a/klone.yaml b/klone.yaml index be48cef..2afdbc6 100644 --- a/klone.yaml +++ b/klone.yaml @@ -10,27 +10,27 @@ targets: - folder_name: boilerplate repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 170011a316b4243134effad30cbc415a331baa97 + repo_hash: dc8ce162c76ca7b95f80157aefa4afb9d2783b82 repo_path: modules/boilerplate - folder_name: generate-verify repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 170011a316b4243134effad30cbc415a331baa97 + repo_hash: dc8ce162c76ca7b95f80157aefa4afb9d2783b82 repo_path: modules/generate-verify - folder_name: help repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 170011a316b4243134effad30cbc415a331baa97 + repo_hash: dc8ce162c76ca7b95f80157aefa4afb9d2783b82 repo_path: modules/help - folder_name: klone repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 170011a316b4243134effad30cbc415a331baa97 + repo_hash: dc8ce162c76ca7b95f80157aefa4afb9d2783b82 repo_path: modules/klone - folder_name: oci-image repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 170011a316b4243134effad30cbc415a331baa97 + repo_hash: dc8ce162c76ca7b95f80157aefa4afb9d2783b82 repo_path: modules/oci-image - folder_name: repository-base repo_url: https://github.com/cert-manager/makefile-modules.git @@ -40,5 +40,5 @@ targets: - folder_name: tools repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 170011a316b4243134effad30cbc415a331baa97 + repo_hash: dc8ce162c76ca7b95f80157aefa4afb9d2783b82 repo_path: modules/tools diff --git a/make/_shared/generate-verify/01_mod.mk b/make/_shared/generate-verify/00_mod.mk similarity index 79% rename from make/_shared/generate-verify/01_mod.mk rename to make/_shared/generate-verify/00_mod.mk index f0f10e0..c755a3d 100644 --- a/make/_shared/generate-verify/01_mod.mk +++ b/make/_shared/generate-verify/00_mod.mk @@ -12,6 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Shared targets are set by other Makefile modules. +shared_generate_targets ?= +shared_verify_targets_dirty ?= + +# Extra targets are set by the Makefiles in the project. extra_generate_targets ?= extra_verify_targets ?= extra_verify_targets_dirty ?= diff --git a/make/_shared/help/help.sh b/make/_shared/help/help.sh index 83d91bd..391c39f 100755 --- a/make/_shared/help/help.sh +++ b/make/_shared/help/help.sh @@ -21,10 +21,10 @@ CATEGORY_COLOR="$(tput setaf 3)" CLEAR_STYLE="$(tput sgr0)" PURPLE=$(tput setaf 125) -EMPTYLINE_REGEX="^\s*$" -DOCBLOCK_REGEX="^##\s*(.*)$" -CATEGORY_REGEX="^##\s*@category\s*(.*)$" -TARGET_REGEX="^([a-zA-Z0-9\_\/\%\$\-\(\)]+):.*$" +EMPTYLINE_REGEX="^[[:space:]]*$" +DOCBLOCK_REGEX="^##[[:space:]]*(.*)$" +CATEGORY_REGEX="^##[[:space:]]*@category[[:space:]]*(.*)$" +TARGET_REGEX="^(([a-zA-Z0-9\_\/\%\$\(\)]|-)+):.*$" EMPTY_ITEM="" diff --git a/make/_shared/tools/00_mod.mk b/make/_shared/tools/00_mod.mk index 39c9ea7..7651bac 100644 --- a/make/_shared/tools/00_mod.mk +++ b/make/_shared/tools/00_mod.mk @@ -90,6 +90,10 @@ TOOLS += oras=v1.1.0 TOOLS += ginkgo=$(shell [[ -f go.mod ]] && awk '/ginkgo\/v2/ {print $$2}' go.mod || echo "v2.13.2") # https://pkg.go.dev/github.com/cert-manager/klone?tab=versions TOOLS += klone=v0.0.3 +# https://pkg.go.dev/github.com/goreleaser/goreleaser?tab=versions +TOOLS += goreleaser=v1.23.0 +# https://pkg.go.dev/github.com/anchore/syft/cmd/syft?tab=versions +TOOLS += syft=v0.100.0 # https://pkg.go.dev/k8s.io/code-generator/cmd?tab=versions K8S_CODEGEN_VERSION=v0.29.0 @@ -100,7 +104,7 @@ TOOLS += etcd=$(KUBEBUILDER_ASSETS_VERSION) TOOLS += kube-apiserver=$(KUBEBUILDER_ASSETS_VERSION) # https://go.dev/dl/ -VENDORED_GO_VERSION := 1.21.5 +VENDORED_GO_VERSION := 1.21.6 # Print the go version which can be used in GH actions .PHONY: print-go-version @@ -262,6 +266,8 @@ GO_DEPENDENCIES += boilersuite=github.com/cert-manager/boilersuite GO_DEPENDENCIES += gomarkdoc=github.com/princjef/gomarkdoc/cmd/gomarkdoc GO_DEPENDENCIES += oras=oras.land/oras/cmd/oras GO_DEPENDENCIES += klone=github.com/cert-manager/klone +GO_DEPENDENCIES += goreleaser=github.com/goreleaser/goreleaser +GO_DEPENDENCIES += syft=github.com/anchore/syft/cmd/syft define go_dependency $$(bin_dir)/downloaded/tools/$1@$($(call UC,$1)_VERSION)_%: | $$(NEEDS_GO) $$(bin_dir)/downloaded/tools