Skip to content

Commit 46400ac

Browse files
authored
Merge pull request #5878 from mboersma/go-version-from-toolchain-release-1.20
[release-1.20] Get GO_VERSION from toolchain statment
2 parents d5d1631 + 58587ac commit 46400ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SHELL:=/usr/bin/env bash
2020

2121
.DEFAULT_GOAL:=help
2222

23-
GO_VERSION ?= $(shell sed -n 's/^go //p' go.mod)
23+
GO_VERSION ?= $(shell sed -n 's/^toolchain go//p' go.mod)
2424
GOPATH := $(shell go env GOPATH)
2525
GOARCH := $(shell go env GOARCH)
2626
GOOS := $(shell go env GOOS)

0 commit comments

Comments
 (0)