Skip to content

Commit

Permalink
Merge pull request #149 from cert-manager/self-upgrade-main
Browse files Browse the repository at this point in the history
[CI] Merge self-upgrade-main into main
  • Loading branch information
cert-manager-prow[bot] authored Jan 21, 2025
2 parents 748e560 + efa859d commit b579181
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
26 changes: 13 additions & 13 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,65 +10,65 @@ targets:
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/boilerplate
- folder_name: cert-manager
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/cert-manager
- folder_name: controller-gen
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/controller-gen
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/generate-verify
- folder_name: go
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/go
- folder_name: helm
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/helm
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/help
- folder_name: kind
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/kind
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/klone
- folder_name: oci-build
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/oci-build
- folder_name: oci-publish
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/oci-publish
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 8f89bfef199543e41c5b6bbbf722a4f5f0f9e0fb
repo_hash: dd3c1e710614cfe5fb4c6597f5494c83d250930f
repo_path: modules/tools
22 changes: 19 additions & 3 deletions make/_shared/tools/00_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ endef

$(foreach tool,$(tools),$(eval $(call tool_defs,$(word 1,$(subst =, ,$(tool))),$(word 2,$(subst =, ,$(tool))))))

tools_paths := $(tool_names:%=$(bin_dir)/tools/%)

######
# Go #
######
Expand Down Expand Up @@ -365,7 +363,10 @@ $(call for_each_kv,go_tags_init,$(go_dependencies))
go_tags_defs = go_tags_$1 += $2
$(call for_each_kv,go_tags_defs,$(go_tags))

go_tool_names :=

define go_dependency
go_tool_names += $1
$$(DOWNLOAD_DIR)/tools/$1@$($(call uc,$1)_VERSION)_$(HOST_OS)_$(HOST_ARCH): | $$(NEEDS_GO) $$(DOWNLOAD_DIR)/tools
@source $$(lock_script) $$@; \
mkdir -p $$(outfile).dir; \
Expand Down Expand Up @@ -642,7 +643,22 @@ ifneq ($(missing),)
$(error Missing required tools: $(missing))
endif

non_go_tool_names := $(filter-out $(go_tool_names),$(tool_names))

.PHONY: non-go-tools
## Download and setup all Go tools
## @category [shared] Tools
non-go-tools: $(non_go_tool_names:%=$(bin_dir)/tools/%)

.PHONY: go-tools
## Download and setup all Non-Go tools
## NOTE: this target is also used to learn the shas of
## these tools (see scripts/learn_tools_shas.sh in the
## Makefile modules repo)
## @category [shared] Tools
go-tools: $(go_tool_names:%=$(bin_dir)/tools/%)

.PHONY: tools
## Download and setup all tools
## @category [shared] Tools
tools: $(tools_paths)
tools: non-go-tools go-tools

0 comments on commit b579181

Please sign in to comment.