Skip to content

Commit a1a937a

Browse files
committed
hack/make/go: update go.mk
1 parent 35f52aa commit a1a937a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/make/go.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ mod/install/static: ## Install the module vendor package as an object file with
184184

185185
.PHONY: mod/update
186186
mod/update: mod/goget mod/tidy mod/vendor mod/install ## Updates all of vendor packages.
187-
@sed -i ':a;N;$$!ba;s|go 1\.12\n\n||g' go.mod
187+
@GO111MODULE=on go mod edit -go 1.12
188188

189189
.PHONY: mod
190190
mod: mod/init mod/tidy mod/vendor mod/install
191191
mod: ## Updates the vendoring directory using go mod.
192-
@sed -i ':a;N;$$!ba;s|go 1\.12\n\n||g' go.mod
192+
@GO111MODULE=on go mod edit -go 1.12
193193

194194

195195
## clean

0 commit comments

Comments
 (0)