aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVignesh Mani <[email protected]>2022-11-10 22:06:31 +0530
committerGitHub <[email protected]>2022-11-10 17:36:31 +0100
commit60e0e2c1d971020e89f47793070ffaa9555c501e (patch)
tree1476c88c3928c20e6f9c6b53f1ff5746addd3464
parent52ea07d2eb9c581015f85c0d2d6973640a62281b (diff)
downloadhugo-60e0e2c1d971020e89f47793070ffaa9555c501e.tar.gz
hugo-60e0e2c1d971020e89f47793070ffaa9555c501e.zip
Add Go 1.16+ install method to README
Changed installation method to reflect Go 1.16+, as cloning the repo and doing a go install achieves the same process. Also changed "Advanced Installation" to "Using the Go toolchain"
-rw-r--r--README.md16
1 files changed, 4 insertions, 12 deletions
diff --git a/README.md b/README.md
index d06280ec6..3c41e66e5 100644
--- a/README.md
+++ b/README.md
@@ -67,31 +67,24 @@ Building the binaries is an easy task for an experienced `go` getter.
Use the [installation instructions in the Hugo documentation](https://gohugo.io/getting-started/installing/).
-### Build and Install the Binaries from Source (Advanced Install)
+### Build and Install the Binary from Source (Using the Go toolchain)
#### Prerequisite Tools
-* [Git](https://git-scm.com/)
* [Go (we test it with the last 2 major versions; but note that Hugo 0.95.0 only builds with >= Go 1.18.)](https://golang.org/dl/)
#### Fetch from GitHub
-To fetch and build the source from GitHub:
+To fetch, build and install from the Github source:
```bash
-mkdir $HOME/src
-cd $HOME/src
-git clone https://github.com/gohugoio/hugo.git
-cd hugo
-go install
+go install github.com/gohugoio/hugo@latest
```
-**If you are a Windows user, substitute the `$HOME` environment variable above with `%USERPROFILE%`.**
-
If you want to compile with Sass/SCSS support use `--tags extended` and make sure `CGO_ENABLED=1` is set in your go environment. If you don't want to have CGO enabled, you may use the following command to temporarily enable CGO only for hugo compilation:
```bash
-CGO_ENABLED=1 go install --tags extended
+CGO_ENABLED=1 go install --tags extended github.com/gohugoio/hugo@latest
```
## The Hugo Documentation
@@ -247,4 +240,3 @@ google.golang.org/grpc="v1.46.0"
google.golang.org/protobuf="v1.28.0"
gopkg.in/yaml.v2="v2.4.0"
```
-