Skip to content

Commit

Permalink
Set GOTOOLCHAIN=local on the go command inside Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyuanliang committed Mar 6, 2024
1 parent 04ea284 commit ff57ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ff57ddf

Please sign in to comment.