BOT: run 'make upgrade-klone' and 'make generate'
Signed-off-by: cert-manager-bot <cert-manager-bot@users.noreply.github.com>
This commit is contained in:
parent
f037fd2c68
commit
e0b345bafe
14
klone.yaml
14
klone.yaml
@ -10,35 +10,35 @@ targets:
|
||||
- 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: 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: 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: 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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user