From ff57ddf7bcb582a85681160f91e20b03a6e48162 Mon Sep 17 00:00:00 2001 From: Jingyuan Liang Date: Wed, 6 Mar 2024 21:34:36 +0000 Subject: [PATCH] Set GOTOOLCHAIN=local on the go command inside Makefile thockin/go-build-template#111 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e3394ddb7..211f37fac 100644 --- a/Makefile +++ b/Makefile @@ -55,8 +55,8 @@ MAKEFLAGS += --warn-undefined-variables .SUFFIXES: # Used internally. Users should pass GOOS and/or GOARCH. -OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS)) -ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH)) +OS := $(if $(GOOS),$(GOOS),$(shell GOTOOLCHAIN=local go env GOOS)) +ARCH := $(if $(GOARCH),$(GOARCH),$(shell GOTOOLCHAIN=local go env GOARCH)) TAG := $(VERSION)__$(OS)_$(ARCH)