Skip to content

Commit dbcf008

Browse files
committed
fix: preserve toolchain flag
1 parent 555f93e commit dbcf008

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/makefile/.toolbox.mk.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ tb.reset:
4747
## Update Tools
4848
.PHONY: tb.update
4949
tb.update: tb.reset
50-
toolbox makefile {{ if $.Renovate }}--renovate {{ end }}-f $(TB_LOCALDIR)/Makefile{{- range .Tools }}{{- if not .FromToolsGo }} \
50+
toolbox makefile {{ if $.Renovate }}--renovate {{ end }}{{ if $.Toolchain }}--toolchain {{ end }}-f $(TB_LOCALDIR)/Makefile{{- range .Tools }}{{- if not .FromToolsGo }} \
5151
{{.Tool}}{{- end }}
5252
{{- end }}

testdata/.toolbox.mk.toolchain.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tb.reset:
5353
## Update Tools
5454
.PHONY: tb.update
5555
tb.update: tb.reset
56-
toolbox makefile -f $(TB_LOCALDIR)/Makefile \
56+
toolbox makefile --toolchain -f $(TB_LOCALDIR)/Makefile \
5757
sigs.k8s.io/controller-tools/cmd/controller-gen@github.com/kubernetes-sigs/controller-tools \
5858
github.com/golangci/golangci-lint/v2/cmd/golangci-lint \
5959
github.com/bakito/semver \

0 commit comments

Comments
 (0)