Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/snap
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-26 18:24:52 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-31 12:19:51 +0300
commit0fc2ce9e4bf0524994a861b7300e4332f6f8d390 (patch)
tree61a0951413b80ff4daefcbcdbfacab3f54614b44 /snap
parent32569285c181c8798ef594c12d3cfd7f9a252a04 (diff)
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
Diffstat (limited to 'snap')
-rw-r--r--snap/snapcraft.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 188bab501..a224f3652 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -31,7 +31,7 @@ parts:
hugo:
plugin: nil
- build-snaps: [go/1.16/stable]
+ build-snaps: [go/1.17/stable]
source: .
override-build: |
set -ex