mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 22:01:43 -05:00
Update README.md
This commit is contained in:
parent
a2f0f9d475
commit
f627903efa
1 changed files with 8 additions and 12 deletions
20
README.md
20
README.md
|
@ -57,22 +57,18 @@ Use the [installation instructions in the Hugo documentation](https://gohugo.io/
|
||||||
#### Prerequisite Tools
|
#### Prerequisite Tools
|
||||||
|
|
||||||
* [Git](https://git-scm.com/)
|
* [Git](https://git-scm.com/)
|
||||||
* [Go (latest or previous version)](https://golang.org/dl/)
|
* [Go (at least Go 1.11)](https://golang.org/dl/)
|
||||||
|
|
||||||
#### Vendored Dependencies
|
|
||||||
|
|
||||||
Hugo uses [dep](https://github.com/golang/dep) to vendor dependencies, but we don't commit the vendored packages themselves to the Hugo git repository. Therefore, a simple `go get` is _not_ supported because the command is not vendor aware.
|
|
||||||
|
|
||||||
The simplest way is to use [mage](https://github.com/magefile/mage) (a Make alternative for Go projects.)
|
|
||||||
|
|
||||||
#### Fetch from GitHub
|
#### Fetch from GitHub
|
||||||
|
|
||||||
|
Since Hugo 0.48, Hugo uses the Go Modules support built into Go 1.11 to build. The easiest is is to clone Hugo in a directory outside of `GOPATH`, as in the following example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/magefile/mage
|
mkdir $HOME/src
|
||||||
go get -d github.com/gohugoio/hugo
|
cd $HOME/src
|
||||||
cd ${GOPATH:-$HOME/go}/src/github.com/gohugoio/hugo
|
git clone https://github.com/gohugoio/hugo.git
|
||||||
mage vendor
|
cd hugo
|
||||||
mage install
|
go install
|
||||||
```
|
```
|
||||||
|
|
||||||
**If you are a Windows user, substitute the `$HOME` environment variable above with `%USERPROFILE%`.**
|
**If you are a Windows user, substitute the `$HOME` environment variable above with `%USERPROFILE%`.**
|
||||||
|
|
Loading…
Reference in a new issue