From 82a979707a69f1927216cc292b0389fe236f6350 Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 29 Jan 2020 02:30:02 +0000 Subject: Update documentation for the go module era (#9751) * Update documentation for the go module era use go env instead of $GOPATH Update instructions to just use git clone Slight update to readme Signed-off-by: Andrew Thornton * fixup * Apply suggestions from code review Co-Authored-By: Antoine GIRARD Co-Authored-By: Bagas Sanjaya * Apply suggestions from code review * Fix GOPATH settings Co-authored-by: Antoine GIRARD Co-authored-by: Bagas Sanjaya Co-authored-by: Lunny Xiao Co-authored-by: techknowlogick --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 882c8c5ba4..4754abcfe0 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,9 @@ export GO111MODULE=off GO ?= go SED_INPLACE := sed -i SHASUM ?= shasum -a 256 +GOPATH ?= $(shell $(GO) env GOPATH) -export PATH := $($(GO) env GOPATH)/bin:$(PATH) +export PATH := $(GOPATH)/bin:$(PATH) ifeq ($(OS), Windows_NT) EXECUTABLE ?= gitea.exe -- cgit v1.2.3