Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump github.com/gohugoio/hugo from 0.94.0 to 0.95.0 #527

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 22, 2022

Bumps github.com/gohugoio/hugo from 0.94.0 to 0.95.0.

Release notes

Sourced from github.com/gohugoio/hugo's releases.

v0.95.0

Even faster, continue and break support, short-circuit of the built-in and/or-operators. This release upgrades to Go 1.18 which was released yesterday. This has made Hugo even faster. How much faster will depend on your site etc., but we have benchmarks that show significant improvements. But the main reason we're exited about this is the improvements in Go templates:

There are two new keywords, break and continue. These behaves like you would expect coming from other programming languages:

{{ range $i, $p := site.RegularPages }}
  {{ if gt $i 2 }}
    {{/* Break out of range, we only want to print the first 3 pages. */}}
    {{ break }}
  {{ end }}
  {{ $p.Title }}
{{ end }}
{{ range $i, $p := site.RegularPages }}
  {{ if eq $i 2 }}
    {{/* Skip the 3rd page. */}}
    {{ continue }}
  {{ end }}
  {{ $p.Title }}
{{ end }}

Also, the two built-in operators/function and and or now short-circuits, also in line with how && and || behave in other programming languages. This is useful in situations where the right side may have side effects (may be nil, is slow to execute etc.):

{{ if and .File (eq .File.Extension "html") }}
{{ end }}

Hugo now has:

Notes

  • Hugo now only builds with Go versions >= 1.18. Note that you do not need Go installed to run Hugo, and for Hugo Modules, any recent Go version can be used.

Changes

  • readme: Add note about Go 1.18 5930173c @​bep
  • tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break }}" bug 3476b533 @​bep
  • readme: Add a contribution note e792d270 @​bep
  • github: Make it build with Go 1.18 9d6495d7 @​bep
  • tpl: Adjustments and an integration test for Go 1.18 42cc5f88 @​bep #9677
  • Remove Go 1.17 support a6488e7b @​bep #9677

... (truncated)

Commits
  • 9f2e76a releaser: Bump versions for release of 0.95.0
  • f1d1576 releaser: Add release notes for 0.95.0
  • 5930173 readme: Add note about Go 1.18
  • 3476b53 tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ ...
  • e792d27 readme: Add a contribution note
  • 9d6495d github: Make it build with Go 1.18
  • 42cc5f8 tpl: Adjustments and an integration test for Go 1.18
  • a6488e7 Remove Go 1.17 support
  • 65a78ca tpl: Sync go_templates for Go 1.18
  • 4d6d1d0 build: Bump to Go 1.18
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo) from 0.94.0 to 0.95.0.
- [Release notes](https://github.com/gohugoio/hugo/releases)
- [Changelog](https://github.com/gohugoio/hugo/blob/master/goreleaser.yml)
- [Commits](gohugoio/hugo@v0.94.0...v0.95.0)

---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@coadler coadler merged commit ebae1b9 into main Mar 22, 2022
@coadler coadler deleted the dependabot/go_modules/github.com/gohugoio/hugo-0.95.0 branch March 22, 2022 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant