Update to Go 1.17
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 26 Aug 2021 15:24:52 +0000 (17:24 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 31 Aug 2021 09:19:51 +0000 (11:19 +0200)
commit0fc2ce9e4bf0524994a861b7300e4332f6f8d390
tree61a0951413b80ff4daefcbcdbfacab3f54614b44
parent32569285c181c8798ef594c12d3cfd7f9a252a04
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
.circleci/config.yml
.github/workflows/test.yml
htesting/test_helpers.go
htesting/test_helpers_test.go [new file with mode: 0644]
modules/client.go
modules/collect.go
snap/snapcraft.yaml