From 50931e40073d825ab5663749b0faef296395e5b2 Mon Sep 17 00:00:00 2001 From: Micah Young Date: Thu, 15 Oct 2020 10:31:05 -0400 Subject: [PATCH] Make version be locked with go.mod Signed-off-by: Micah Young --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 66e71573..f27f0d16 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Go parameters GOCMD?=go -GO_VERSION=$(subst go,,$(word 3, $(shell go version))) # parses "go version go1.15 darwin/amd64" +GO_VERSION=$(shell go list -m -f "{{.GoVersion}}") PACKAGE_BASE=github.com/buildpacks/imgutil all: test