-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
173 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,9 @@ $(TB_LOCALBIN): | |
## Tool Binaries | ||
TB_DEEPCOPY_GEN ?= $(TB_LOCALBIN)/deepcopy-gen | ||
TB_GINKGO ?= $(TB_LOCALBIN)/ginkgo | ||
TB_GOFUMPT ?= $(TB_LOCALBIN)/gofumpt | ||
TB_GOLANGCI_LINT ?= $(TB_LOCALBIN)/golangci-lint | ||
TB_GOLINES ?= $(TB_LOCALBIN)/golines | ||
TB_GORELEASER ?= $(TB_LOCALBIN)/goreleaser | ||
TB_MOCKGEN ?= $(TB_LOCALBIN)/mockgen | ||
TB_OAPI_CODEGEN ?= $(TB_LOCALBIN)/oapi-codegen | ||
|
@@ -20,8 +22,12 @@ TB_SEMVER ?= $(TB_LOCALBIN)/semver | |
## Tool Versions | ||
# renovate: packageName=k8s.io/code-generator/cmd/deepcopy-gen | ||
TB_DEEPCOPY_GEN_VERSION ?= v0.32.0 | ||
# renovate: packageName=mvdan.cc/gofumpt | ||
TB_GOFUMPT_VERSION ?= v0.7.0 | ||
# renovate: packageName=github.com/golangci/golangci-lint/cmd/golangci-lint | ||
TB_GOLANGCI_LINT_VERSION ?= v1.62.2 | ||
# renovate: packageName=github.com/segmentio/golines | ||
TB_GOLINES_VERSION ?= v0.12.2 | ||
# renovate: packageName=github.com/goreleaser/goreleaser/v2 | ||
TB_GORELEASER_VERSION ?= v2.5.0 | ||
# renovate: packageName=go.uber.org/mock/mockgen | ||
|
@@ -40,10 +46,18 @@ $(TB_DEEPCOPY_GEN): $(TB_LOCALBIN) | |
tb.ginkgo: $(TB_GINKGO) ## Download ginkgo locally if necessary. | ||
$(TB_GINKGO): $(TB_LOCALBIN) | ||
test -s $(TB_LOCALBIN)/ginkgo || GOBIN=$(TB_LOCALBIN) go install github.com/onsi/ginkgo/v2/ginkgo | ||
.PHONY: tb.gofumpt | ||
tb.gofumpt: $(TB_GOFUMPT) ## Download gofumpt locally if necessary. | ||
$(TB_GOFUMPT): $(TB_LOCALBIN) | ||
test -s $(TB_LOCALBIN)/gofumpt || GOBIN=$(TB_LOCALBIN) go install mvdan.cc/gofumpt@$(TB_GOFUMPT_VERSION) | ||
.PHONY: tb.golangci-lint | ||
tb.golangci-lint: $(TB_GOLANGCI_LINT) ## Download golangci-lint locally if necessary. | ||
$(TB_GOLANGCI_LINT): $(TB_LOCALBIN) | ||
test -s $(TB_LOCALBIN)/golangci-lint || GOBIN=$(TB_LOCALBIN) go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(TB_GOLANGCI_LINT_VERSION) | ||
.PHONY: tb.golines | ||
tb.golines: $(TB_GOLINES) ## Download golines locally if necessary. | ||
$(TB_GOLINES): $(TB_LOCALBIN) | ||
test -s $(TB_LOCALBIN)/golines || GOBIN=$(TB_LOCALBIN) go install github.com/segmentio/golines@$(TB_GOLINES_VERSION) | ||
.PHONY: tb.goreleaser | ||
tb.goreleaser: $(TB_GORELEASER) ## Download goreleaser locally if necessary. | ||
$(TB_GORELEASER): $(TB_LOCALBIN) | ||
|
@@ -67,7 +81,9 @@ tb.reset: | |
@rm -f \ | ||
$(TB_LOCALBIN)/deepcopy-gen \ | ||
$(TB_LOCALBIN)/ginkgo \ | ||
$(TB_LOCALBIN)/gofumpt \ | ||
$(TB_LOCALBIN)/golangci-lint \ | ||
$(TB_LOCALBIN)/golines \ | ||
$(TB_LOCALBIN)/goreleaser \ | ||
$(TB_LOCALBIN)/mockgen \ | ||
$(TB_LOCALBIN)/oapi-codegen \ | ||
|
@@ -78,7 +94,9 @@ tb.reset: | |
tb.update: tb.reset | ||
toolbox makefile --renovate -f $(TB_LOCALDIR)/Makefile \ | ||
k8s.io/code-generator/cmd/[email protected]/kubernetes/code-generator \ | ||
mvdan.cc/[email protected]/mvdan/gofumpt \ | ||
github.com/golangci/golangci-lint/cmd/golangci-lint \ | ||
github.com/segmentio/golines \ | ||
github.com/goreleaser/goreleaser/v2 \ | ||
go.uber.org/mock/[email protected]/uber-go/mock \ | ||
github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.