mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 18:24:45 -04:00
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:
parent
bd35dfbd85
commit
a87aa44eca
@ -305,9 +305,6 @@ Make the directory containing the source your working directory and then fetch H
|
|||||||
mkdir -p src/github.com/gohugoio
|
mkdir -p src/github.com/gohugoio
|
||||||
ln -sf $(pwd) src/github.com/gohugoio/hugo
|
ln -sf $(pwd) src/github.com/gohugoio/hugo
|
||||||
|
|
||||||
# set the build path for Go
|
|
||||||
export GOPATH=$(pwd)
|
|
||||||
|
|
||||||
go get
|
go get
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user