This is an automated email from the ASF dual-hosted git repository.
ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
The following commit(s) were added to refs/heads/master by this push:
new f35937e6 [YUNIKORN-2586] Set GOROOT to avoid tool failure when using
newer go compilers (#827)
f35937e6 is described below
commit f35937e698cb8252d14fb58fab2a3243532fbc3c
Author: Craig Condit <[email protected]>
AuthorDate: Thu Apr 25 14:53:32 2024 -0500
[YUNIKORN-2586] Set GOROOT to avoid tool failure when using newer go
compilers (#827)
Closes: #827
---
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 92bb7d64..c9d847ce 100644
--- a/Makefile
+++ b/Makefile
@@ -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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]