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.
This commit is contained in:
Andrew Medworth 2020-03-15 14:49:15 +00:00 committed by Bjørn Erik Pedersen
parent bd35dfbd85
commit a87aa44eca

View File

@ -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
```