You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tb.{{.Name}}: $(TB_{{.UpperName}}) ## Download {{.Name}} locally if necessary.
31
36
$(TB_{{.UpperName}}): $(TB_LOCALBIN)
32
-
test -s $(TB_LOCALBIN)/{{.Name}} || GOBIN=$(TB_LOCALBIN) go install {{.ToolName}}{{- if .Version }}@$(TB_{{.UpperName}}_VERSION){{- end }}
37
+
test -s $(TB_LOCALBIN)/{{.Name}} || GOBIN=$(TB_LOCALBIN) {{ if $.Toolchain }}GOTOOLCHAIN=go$(TB_GO_VERSION) {{ end }}go install {{.ToolName}}{{- if .Version }}@$(TB_{{.UpperName}}_VERSION){{- end }}
tb.controller-gen: $(TB_CONTROLLER_GEN) ## Download controller-gen locally if necessary.
29
+
$(TB_CONTROLLER_GEN): $(TB_LOCALBIN)
30
+
test -s $(TB_LOCALBIN)/controller-gen || GOBIN=$(TB_LOCALBIN) GOTOOLCHAIN=go$(TB_GO_VERSION) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(TB_CONTROLLER_GEN_VERSION)
31
+
.PHONY: tb.golangci-lint
32
+
tb.golangci-lint: $(TB_GOLANGCI_LINT) ## Download golangci-lint locally if necessary.
33
+
$(TB_GOLANGCI_LINT): $(TB_LOCALBIN)
34
+
test -s $(TB_LOCALBIN)/golangci-lint || GOBIN=$(TB_LOCALBIN) GOTOOLCHAIN=go$(TB_GO_VERSION) go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(TB_GOLANGCI_LINT_VERSION)
35
+
.PHONY: tb.semver
36
+
tb.semver: $(TB_SEMVER) ## Download semver locally if necessary.
37
+
$(TB_SEMVER): $(TB_LOCALBIN)
38
+
test -s $(TB_LOCALBIN)/semver || GOBIN=$(TB_LOCALBIN) GOTOOLCHAIN=go$(TB_GO_VERSION) go install github.com/bakito/semver@$(TB_SEMVER_VERSION)
39
+
.PHONY: tb.toolbox
40
+
tb.toolbox: $(TB_TOOLBOX) ## Download toolbox locally if necessary.
41
+
$(TB_TOOLBOX): $(TB_LOCALBIN)
42
+
test -s $(TB_LOCALBIN)/toolbox || GOBIN=$(TB_LOCALBIN) GOTOOLCHAIN=go$(TB_GO_VERSION) go install github.com/bakito/toolbox@$(TB_TOOLBOX_VERSION)
0 commit comments