Update to Go 1.17

Go 1.17 now lazy-loads dependencies when `go.mod` is version `go17`. This does not work for us for new projects started with `hugo mod init`.

Before this commit, starting a project with Go 1.17 with `hugo mod init` and then start adding dependencies with transitive dependenies to `config.toml` would treat the transitive dependencies as new, and you would potentially get a too recent version of those.

Note that this does not effect existing projects, where all dependencies are already recorded in `go.mod`.

Fixes #8930
This commit is contained in:
Bjørn Erik Pedersen
2021-08-26 17:24:52 +02:00
parent 32569285c1
commit 0fc2ce9e4b
7 changed files with 153 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
defaults: &defaults
docker:
- image: bepsays/ci-goreleaser:1.16.7
- image: bepsays/ci-goreleaser:1.17.0
environment:
CGO_ENABLED: "0"