From 1982772029a1904fe76f1ca67963e8943d65095a Mon Sep 17 00:00:00 2001 From: Nashwan Azhari Date: Mon, 17 Oct 2022 15:03:37 +0300 Subject: [PATCH] Use `go env` to determine GOPATH in Makefile. Signed-off-by: Nashwan Azhari --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ecf166ac4..dfdaacb15 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ ifdef SKIPTESTS endif #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= GO_BUILD_FLAGS=