Merge pull request #7542 from aznashwan/makefile-gopath

Use `go env` to determine GOPATH in Makefile.
This commit is contained in:
Phil Estes 2022-10-17 09:46:25 -07:00 committed by GitHub
commit 9f6947f672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ ifdef SKIPTESTS
endif endif
#Replaces ":" (*nix), ";" (windows) with newline for easy parsing #Replaces ":" (*nix), ";" (windows) with newline for easy parsing
GOPATHS=$(shell echo ${GOPATH} | tr ":" "\n" | tr ";" "\n") GOPATHS=$(shell go env GOPATH | tr ":" "\n" | tr ";" "\n")
TESTFLAGS_RACE= TESTFLAGS_RACE=
GO_BUILD_FLAGS= GO_BUILD_FLAGS=