summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-01-29 02:30:02 +0000
committerGitHub <noreply@github.com>2020-01-28 21:30:02 -0500
commit82a979707a69f1927216cc292b0389fe236f6350 (patch)
tree3d1a9c43f128fd8f45e2ff2144f0ae37dbe1a5f6 /Makefile
parentdb42a15fa01b27fce2ff792fa26365edeae1894d (diff)
downloadgitea-82a979707a69f1927216cc292b0389fe236f6350.tar.gz
gitea-82a979707a69f1927216cc292b0389fe236f6350.zip
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 <art27@cantab.net> * fixup * Apply suggestions from code review Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> Co-Authored-By: Bagas Sanjaya <bagasdotme@gmail.com> * Apply suggestions from code review * Fix GOPATH settings Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Bagas Sanjaya <bagasdotme@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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