Skip to content

Commit

Permalink
BOT: run 'make upgrade-klone' and 'make generate'
Browse files Browse the repository at this point in the history
Signed-off-by: cert-manager-bot <[email protected]>
  • Loading branch information
cert-manager-bot committed Jul 2, 2024
1 parent 6d4b0d2 commit 8cb0c17
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 12 deletions.
24 changes: 12 additions & 12 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,60 +9,60 @@ targets:
- folder_name: api-docs
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/api-docs
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/boilerplate
- folder_name: cert-manager
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/cert-manager
- folder_name: controller-gen
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/controller-gen
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/generate-verify
- folder_name: go
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/go
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/help
- folder_name: kind
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/kind
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/klone
- folder_name: oci-build
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/oci-build
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: adb1dd2ffdb07aae9aea40c201633c7ae59714d8
repo_hash: cb3ebf9f13251b918c162335069ad7a64f839438
repo_path: modules/tools
35 changes: 35 additions & 0 deletions make/_shared/go/01_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,41 @@ endif
go_base_dir := $(dir $(lastword $(MAKEFILE_LIST)))/base/
golangci_lint_override := $(dir $(lastword $(MAKEFILE_LIST)))/.golangci.override.yaml

.PHONY: go-workspace
go-workspace: export GOWORK?=$(abspath go.work)
## Create a go.work file in the repository root (or GOWORK)
##
## @category Development
go-workspace: | $(NEEDS_GO)
@rm -f $(GOWORK)
$(GO) work init
@find . -name go.mod -not \( -path "./$(bin_dir)/*" -or -path "./make/_shared/*" \) \
| while read d; do \
target=$$(dirname $${d}); \
$(GO) work use "$${target}"; \
done

.PHONY: go-tidy
## Alias for `make generate-go-mod-tidy`
## @category [shared] Generate/ Verify
go-tidy: generate-go-mod-tidy

.PHONY: generate-go-mod-tidy
## Run `go mod tidy` on all Go modules
## @category [shared] Generate/ Verify
generate-go-mod-tidy: | $(NEEDS_GO)
@find . -name go.mod -not \( -path "./$(bin_dir)/*" -or -path "./make/_shared/*" \) \
| while read d; do \
target=$$(dirname $${d}); \
echo "Running 'go mod tidy' in directory '$${target}'"; \
pushd "$${target}" >/dev/null; \
$(GO) mod tidy || exit; \
popd >/dev/null; \
echo ""; \
done

shared_generate_targets += generate-go-mod-tidy

.PHONY: generate-govulncheck
## Generate base files in the repository
## @category [shared] Generate/ Verify
Expand Down

0 comments on commit 8cb0c17

Please sign in to comment.