Browse files


I discovered an inconsistency between the website documentation ( and this README, for installing from source. I checked them both and the website seems to be newer so I would like to propose updating this README to install Hugo using mage (unless it doesn't really matter).
  • Loading branch information...
thedodobird2 authored and bep committed Mar 23, 2018
1 parent 0e8b3cb commit fca49d6c608d227049cb2f26895cfecc685f1c89
Showing with 18 additions and 5 deletions.
  1. +18 −5
@@ -54,15 +54,28 @@ Use the [installation instructions in the Hugo documentation](
### Build and Install the Binaries from Source (Advanced Install)
Add Hugo and its package dependencies to your go `src` directory.
#### Prerequisite Tools
go get -v
* [Git](
* [Go (latest or previous version)](
Once the `get` completes, you should find your new `hugo` (or `hugo.exe`) executable sitting inside `$GOPATH/bin/`.
#### Vendored Dependencies
To update Hugo’s dependencies, use `go get` with the `-u` option.
Hugo uses [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.
go get -u -v
The simplest way is to use [mage]( (a Make alternative for Go projects.)
#### Fetch from GitHub
go get
go get -d
cd ${GOPATH:-$HOME/go}/src/
mage vendor
mage install
**If you are a Windows user, substitute the `$HOME` environment variable above with `%USERPROFILE%`.**
## The Hugo Documentation

0 comments on commit fca49d6

Please sign in to comment.