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)