Skip to content

Commit

Permalink
[YUNIKORN-2586] Set GOROOT to avoid tool failure when using newer go …
Browse files Browse the repository at this point in the history
…compilers (apache#827)

Closes: apache#827
  • Loading branch information
craigcondit committed Apr 25, 2024
1 parent db33f10 commit f35937e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ ifeq ($(GO),)
GO := go
endif

GO_EXE_PATH := $(shell "$(GO)" env GOROOT)/bin
GOROOT := $(shell "$(GO)" env GOROOT)
export GOROOT := $(GOROOT)
GO_EXE_PATH := $(GOROOT)/bin

# Check if this GO tools version used is at least the version of go specified in
# the go.mod file. The version in go.mod should be in sync with other repos.
Expand Down

0 comments on commit f35937e

Please sign in to comment.