File tree 4 files changed +21
-4
lines changed
4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/ap
5
5
6
6
go 1.21
7
7
8
- toolchain go1.22.4
8
+ toolchain go1.22.5
9
9
10
10
replace github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common => ../common
11
11
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/co
5
5
6
6
go 1.21
7
7
8
- toolchain go1.22.4
8
+ toolchain go1.22.5
9
9
10
10
replace github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api => ../api
11
11
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix
5
5
6
6
go 1.21
7
7
8
- toolchain go1.22.4
8
+ toolchain go1.22.5
9
9
10
10
replace (
11
11
github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api => ./api
Original file line number Diff line number Diff line change @@ -217,7 +217,24 @@ ifneq ($(words $(GO_SUBMODULES_NO_DOCS)),0)
217
217
govulncheck : $(addprefix govulncheck.,$(GO_SUBMODULES_NO_DOCS:/go.mod= ) )
218
218
endif
219
219
220
- .PHONY : ggovulncheck .%
220
+ .PHONY : govulncheck .%
221
221
govulncheck.% : # # Runs golangci-lint for a specific module
222
222
govulncheck.% : ; $(info $(M ) running govulncheck on $* module)
223
223
$(if $(filter-out root .,$* ) ,cd $* && ) govulncheck ./...
224
+
225
+ .PHONY : go-mod-edit-toolchain
226
+ go-mod-edit-toolchain : # # Edits the go.mod file of all modules in repository to use the toolchain version
227
+ ifneq ($(wildcard $(REPO_ROOT ) /go.mod) ,)
228
+ go-mod-edit-toolchain : go-mod-edit-toolchain.root
229
+ endif
230
+ ifneq ($(words $(GO_SUBMODULES_NO_DOCS ) ) ,0)
231
+ go-mod-edit-toolchain : $(addprefix go-mod-edit-toolchain.,$(GO_SUBMODULES_NO_DOCS:/go.mod= ) )
232
+ endif
233
+
234
+ .PHONY : go-mod-edit-toolchain.%
235
+ go-mod-edit-toolchain.% : # # Edits the go.mod file of a specifc module in repository to use the toolchain version
236
+ go-mod-edit-toolchain.% : ; $(info $(M ) setting go toolchain for $* module)
237
+ ifndef GO_TOOLCHAIN_VERSION
238
+ $(error GO_TOOLCHAIN_VERSION is not set: please set GO_TOOLCHAIN_VERSION to the desired version, e.g. go1.22.5)
239
+ endif
240
+ $(if $(filter-out root .,$*),cd $* && )go mod edit -toolchain=$(GO_TOOLCHAIN_VERSION)
You can’t perform that action at this time.
0 commit comments