Skip to content

Move gen tools to tools/tools.go and use go run#521

Merged
mergify[bot] merged 1 commit into
bpfman:mainfrom
alebedev87:move-gen-tools-to-gomod
May 7, 2026
Merged

Move gen tools to tools/tools.go and use go run#521
mergify[bot] merged 1 commit into
bpfman:mainfrom
alebedev87:move-gen-tools-to-gomod

Conversation

@alebedev87
Copy link
Copy Markdown
Contributor

Consolidate tool dependency tracking from hack/tools.go and Makefile go install @version targets into tools/tools.go using the blank import pattern. This pins tool versions in go.mod and vendors them, matching the pattern already used for setup-envtest.

Tools moved: controller-gen, register-gen, informer-gen, lister-gen, client-gen. Makefile now invokes them via go run instead of installing to bin/. Removed unused CM_VERIFIER variable, CONTROLLER_TOOLS_VERSION, and K8S_CODEGEN_VERSION.

Consolidate tool dependency tracking from `hack/tools.go` and Makefile
`go install @version` targets into `tools/tools.go` using the blank
import pattern. This pins tool versions in `go.mod` and vendors them,
matching the pattern already used for `setup-envtest`.

Tools moved: `controller-gen`, `register-gen`, `informer-gen`,
`lister-gen`, `client-gen`. Makefile now invokes them via `go run`
instead of installing to `bin/`. Removed unused `CM_VERIFIER`
variable, `CONTROLLER_TOOLS_VERSION`, and `K8S_CODEGEN_VERSION`.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrey Lebedev <alebedev@redhat.com>
Copy link
Copy Markdown
Contributor

@frobware frobware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks!

@mergify mergify Bot merged commit 8416e67 into bpfman:main May 7, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants