Remove Go 1.17 support

Go 1.18 had some breaking changes on source level meaning we cannot build on older Go versions anymore.

The improvements in Go 1.18 (e.g. `break` and `continue`)  were to good to pass on.

Note that you don't need Go (or Go 1.18) to run a pre-built binary.

Updates #9677
This commit is contained in:
Bjørn Erik Pedersen
2022-03-16 08:57:58 +01:00
parent 65a78cae1e
commit a6488e7bad
3 changed files with 44 additions and 16 deletions

View File

@@ -7,7 +7,11 @@ jobs:
GO111MODULE: on
strategy:
matrix:
go-version: [1.17.x, 1.18.x]
# 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).
# 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]
runs-on: ${{ matrix.os }}
steps: