docs/content/en/_common/installation/04-build-from-source.md
To build the extended or extended/deploy edition from source you must:
PATH environment variable as described in the Go documentationThe install directory is controlled by the
GOPATHandGOBINenvironment variables. IfGOBINis set, binaries are installed to that directory. IfGOPATHis set, binaries are installed to the bin subdirectory of the first directory in theGOPATHlist. Otherwise, binaries are installed to the bin subdirectory of the defaultGOPATH($HOME/goor%USERPROFILE%\go).
To build the standard edition:
go install github.com/gohugoio/hugo@latest
To build the extended edition:
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
To build the extended/deploy edition:
CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/hugo@latest