From a87aa44ecabbe1756e0e235fa7c6538efcf394c2 Mon Sep 17 00:00:00 2001 From: Andrew Medworth Date: Sun, 15 Mar 2020 14:49:15 +0000 Subject: [PATCH] Don't set GOPATH when building from source Now that go.mod exists, setting GOPATH to the root of the Hugo source results in commands like "go get" giving the error "$GOPATH/go.mod exists but should not". Hugo should now be built outside the GOPATH. --- content/en/getting-started/installing.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/content/en/getting-started/installing.md b/content/en/getting-started/installing.md index ad70c18a1..23f25f477 100644 --- a/content/en/getting-started/installing.md +++ b/content/en/getting-started/installing.md @@ -305,9 +305,6 @@ Make the directory containing the source your working directory and then fetch H mkdir -p src/github.com/gohugoio ln -sf $(pwd) src/github.com/gohugoio/hugo -# set the build path for Go -export GOPATH=$(pwd) - go get ```