Update CONTRIBUTING.md to use "go install" to install mage

In Go 1.18, "go get" no longer builds packages.
This commit is contained in:
Anthony Fok 2022-03-21 10:25:36 -06:00 committed by Anthony Fok
parent 8309a2b1c1
commit bbd455fe79
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ jobs:
matrix:
# Note: We upgraded to Go 1.18 in Hugo v0.95.0
# Go 1.18 had some breaking changes on the source level which means Hugo cannot be built
# with older Go versions, but the improvements in Go 1.18 were to good to pass on (e.g. break and continue).
# with older Go versions, but the improvements in Go 1.18 were too good to pass on (e.g. break and continue).
# Note that you don't need Go (or Go 1.18) to run a pre-built binary.
go-version: [1.18.x]
os: [ubuntu-latest, macos-latest, windows-latest]

View file

@ -126,7 +126,7 @@ go install
For some convenient build and test targets, you also will want to install Mage:
```bash
go get github.com/magefile/mage
go install github.com/magefile/mage
```
Now, to make a change to Hugo's source: