mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 04:18:46 +00:00
Use GOPATH variable if defined in installation from source
This makes the command work on systems with a custom GOPATH environment variable set. If not defined, it will fallback to `$HOME/.go`.
This commit is contained in:
1 parent
5f70e6ee2c
commit
84704aa84b
1 file changed
+1
-1
@@ -79,7 +79,7 @@ The simplest way is to use [mage][] (a Make alternative for Go projects.)
|
|||||||
{{< code file="from-gh.sh" >}}
|
{{< code file="from-gh.sh" >}}
|
||||||
go get github.com/magefile/mage
|
go get github.com/magefile/mage
|
||||||
go get -d github.com/gohugoio/hugo
|
go get -d github.com/gohugoio/hugo
|
||||||
cd $HOME/go/src/github.com/gohugoio/hugo
|
cd ${GOPATH:-$HOME/go}/src/github.com/gohugoio/hugo
|
||||||
mage vendor
|
mage vendor
|
||||||
mage install
|
mage install
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|||||||
Reference in new issue
Block a user