Repository navigation
Commit 029772b
authored
chore(deps): update dependency hugo to latest (#2688)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [hugo](https://redirect.github.com/gohugoio/hugo) | tools | minor |
`0.169.0` → `0.170.1` |
---
### Release Notes
<details>
<summary>gohugoio/hugo (hugo)</summary>
###
[`v0.170.1`](https://redirect.github.com/gohugoio/hugo/releases/tag/v0.170.1)
[Compare
Source](https://redirect.github.com/gohugoio/hugo/compare/v0.170.0...v0.170.1)
The primary motivation for this release is a bug fix for a performance
regression introduces in
[v0.166.0](https://redirect.github.com/gohugoio/hugo/releases/tag/v0.166.0)
where we improved the `return` keyword in `partial` templates. Note that
this was not an issue if you don't use this keyword and also only an
issue for bigger sites.
#### What's Changed
- deps: Upgrade github.com/bep/imagemeta v1.1.1 => v1.1.2
[`e6d7bcb`](https://redirect.github.com/gohugoio/hugo/commit/e6d7bcba)
[@​bep](https://redirect.github.com/bep)
- tpl/tplimpl: Don't add file context to partial return sentinel errors
[`5f34065`](https://redirect.github.com/gohugoio/hugo/commit/5f34065b)
[@​bep](https://redirect.github.com/bep)
[#​15604](https://redirect.github.com/gohugoio/hugo/issues/15604)
- images: Add fgColor and bgColor options to images.QR and the qr
shortcode
[`93be9f1`](https://redirect.github.com/gohugoio/hugo/commit/93be9f1f)
[@​bep](https://redirect.github.com/bep)
[#​15600](https://redirect.github.com/gohugoio/hugo/issues/15600)
- tpl/tplimpl: Cleanup vimeo shortcode comments and arg logic
[`6c6b1ee`](https://redirect.github.com/gohugoio/hugo/commit/6c6b1eea)
[@​jmooring](https://redirect.github.com/jmooring)
- Delete hugolib/integrationtest_builder_test.go
[`b8765e1`](https://redirect.github.com/gohugoio/hugo/commit/b8765e1f)
[@​bep](https://redirect.github.com/bep)
- tests: Address deprecation errors
[`7a15e87`](https://redirect.github.com/gohugoio/hugo/commit/7a15e872)
[@​jmooring](https://redirect.github.com/jmooring)
###
[`v0.170.0`](https://redirect.github.com/gohugoio/hugo/releases/tag/v0.170.0)
[Compare
Source](https://redirect.github.com/gohugoio/hugo/compare/v0.169.0...v0.170.0)
The big change in this release is that **the *extended* edition of Hugo
is gone**. LibSass has been deprecated for a long time, and it was the
only remaining reason we needed a CGO-enabled extended build. There is
now only one Hugo binary, and apart from LibSass it has all the features
the extended build had.
#### Notes
- Setting `transpiler` to `libsass` in
[`css.Sass`](https://gohugo.io/functions/css/sass/) now returns an
error. [Dart Sass](https://gohugo.io/functions/css/sass/#dart-sass) is
now the default and the only transpiler, so you need to [install
it](https://gohugo.io/functions/css/sass/#installation-overview) if you
use Sass.
- We no longer publish `hugo_extended_*` archives. To avoid breaking
existing CI setups, we publish aliases for the most downloaded extended
archives (e.g. `hugo_extended_<version>_linux-amd64.tar.gz`,
`hugo_extended_<version>_Linux-64bit.tar.gz`, the `linux-amd64.deb`,
`linux-arm64.tar.gz` and `windows-amd64.zip`), but you should update
your scripts to use the standard archives. The `extended_withdeploy`
builds are also removed. See
[Installation](https://gohugo.io/installation/).
- [`hugo.IsExtended`](https://gohugo.io/functions/hugo/isextended/) now
always returns `false`, and the module config setting
`hugoVersion.extended` is deprecated and has no effect.
- Command-line flags (e.g. `--buildDrafts`) now override OS [environment
variables](https://gohugo.io/configuration/introduction/#environment-variables)
(e.g. `HUGO_BUILDDRAFTS`). This also fixes `HUGO_ENVIRONMENT=qa hugo
build -e staging` loading the `staging` config but reporting `qa` in
`hugo.Environment`.
- [`strings.Truncate`](https://gohugo.io/functions/strings/truncate/)
has been rewritten on top of a proper HTML scanner. It now handles
comments, void elements, quoted attributes with `>` and raw text
elements such as `script` correctly, and it's faster and allocates less.
On a curious note, the old version was implemented by [Mathias
Biilmann](https://redirect.github.com/biilmann), the Netlify CEO.
- `time.Time` values now keep their named time zone, and
[`eq`](https://gohugo.io/functions/compare/eq/), `ne`, `in` and `uniq`
compare `time.Time` values by instant.
- [`resources.Match`](https://gohugo.io/functions/resources/match/) and
friends now preserve the directory casing in the matched paths, so e.g.
`resources.Match "gallery/Travel/Iceland/*"` now works on case-sensitive
file systems.
- Syncing of static files is much faster for big unchanged files, as we
now skip the content check for files with the same size and modification
time.
- Several fixes and hardening of the WASM based image codecs (AVIF crash
at `encoderSpeed` 6 and lower, recovering from broken WASM instances in
the server).
#### Security
##### Hugo
- [Passthrough](https://gohugo.io/configuration/markup/#passthrough)
content is now HTML escaped when no passthrough render hook is set,
unless `markup.goldmark.renderer.unsafe` is enabled. Before this, e.g.
`\(<img src=x onerror=alert(1)>\)` in a content file emitted raw HTML.
- The `wrapperClass` option, settable from the
[`highlight`](https://gohugo.io/shortcodes/highlight/) shortcode and
[`transform.Highlight`](https://gohugo.io/functions/transform/highlight/),
is now escaped.
- [Vendored](https://gohugo.io/hugo-modules/use-modules/#vendor) module
paths are now restricted to the `_vendor` directory (symlinks pointing
outside are rejected).
Thanks to [@​R0X4R](https://redirect.github.com/R0X4R) for finding
and reporting the last two issues.
##### Go
This release is built with Go 1.27.4, which [includes 12 security
fixes](https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ).
The one most relevant for Hugo is a crash in the `net/http` HTTP/1
server (used by `hugo server`) caused by a race in `MaxBytesReader`. The
other 11 are in the `cmd/go` toolchain (cgo flag and linker injection at
build time) and mainly matter if you build Hugo from source with
untrusted dependencies.
##### Dependencies
- `golang.org/x/net` v0.62.0 [fixes two issues in the `html`
package](https://seclists.org/oss-sec/2026/q4/407): quadratic complexity
when coalescing text nodes, and a namespace issue when rendering raw
text. Hugo uses this package when collecting HTML elements for
`hugo_stats.json` and in the AsciiDoc integration.
- `github.com/go-jose/go-jose/v4` v4.1.6 (indirect dependency) contains
a number of [security
fixes](https://redirect.github.com/go-jose/go-jose/releases), among them
GHSA-mgcc-cww5-fp2q (RSA modulus size limit when parsing JWKs) and a
stack depth limit in the JSON decoder.
#### Changes
- Remove libsass and the extended build tag
[`c2f9cb8`](https://redirect.github.com/gohugoio/hugo/commit/c2f9cb82)
[@​bep](https://redirect.github.com/bep)
[#​15405](https://redirect.github.com/gohugoio/hugo/issues/15405)
- Remove the extended build from the release
[`0b66ebd`](https://redirect.github.com/gohugoio/hugo/commit/0b66ebd4)
[@​bep](https://redirect.github.com/bep)
[#​15502](https://redirect.github.com/gohugoio/hugo/issues/15502)
- Fix typo in AGENTS.md
[`588241b`](https://redirect.github.com/gohugoio/hugo/commit/588241bf)
[@​pei711](https://redirect.github.com/pei711)
- tpl/collections: Fix sort when some items lack the sort key
[`a8a8e97`](https://redirect.github.com/gohugoio/hugo/commit/a8a8e978)
[@​bep](https://redirect.github.com/bep)
[#​15523](https://redirect.github.com/gohugoio/hugo/issues/15523)
- warpc, commands: Fix Close of image dispatchers, recover in fast
render
[`3c2f52d`](https://redirect.github.com/gohugoio/hugo/commit/3c2f52d4)
[@​bep](https://redirect.github.com/bep)
[#​15522](https://redirect.github.com/gohugoio/hugo/issues/15522)
- warpc: Fix AVIF encode crashing at encoderSpeed 6 and lower
[`4742565`](https://redirect.github.com/gohugoio/hugo/commit/47425654)
[@​bep](https://redirect.github.com/bep)
[#​15522](https://redirect.github.com/gohugoio/hugo/issues/15522)
- Fix misc layout lookup issues
[`f3875ec`](https://redirect.github.com/gohugoio/hugo/commit/f3875ec3)
[@​bep](https://redirect.github.com/bep)
[#​15538](https://redirect.github.com/gohugoio/hugo/issues/15538)
[#​15540](https://redirect.github.com/gohugoio/hugo/issues/15540)
- tpl/collections: Fix merge of maps with concrete element types
[`b76fde2`](https://redirect.github.com/gohugoio/hugo/commit/b76fde2f)
[@​bep](https://redirect.github.com/bep)
[#​15499](https://redirect.github.com/gohugoio/hugo/issues/15499)
- tpl/tplimpl: Fix shortcode layout lookup in non-default output formats
[`87e6e14`](https://redirect.github.com/gohugoio/hugo/commit/87e6e14c)
[@​jmooring](https://redirect.github.com/jmooring)
[#​15536](https://redirect.github.com/gohugoio/hugo/issues/15536)
- langs/i18n: Fix project translations losing to module translations
[`fa5a3d4`](https://redirect.github.com/gohugoio/hugo/commit/fa5a3d48)
[@​jmooring](https://redirect.github.com/jmooring)
[#​15518](https://redirect.github.com/gohugoio/hugo/issues/15518)
- Adjust Exif test to fix now failing deprecation tests
[`471d0fb`](https://redirect.github.com/gohugoio/hugo/commit/471d0fb3)
[@​bep](https://redirect.github.com/bep)
- markup/goldmark: Escape passthrough content when no render hook is set
[`e2f66a2`](https://redirect.github.com/gohugoio/hugo/commit/e2f66a23)
[@​raghu45345](https://redirect.github.com/raghu45345)
- tpl: Compare time.Time values by instant in eq, ne, in and uniq
[`3519196`](https://redirect.github.com/gohugoio/hugo/commit/3519196b)
[@​jmooring](https://redirect.github.com/jmooring)
[#​15577](https://redirect.github.com/gohugoio/hugo/issues/15577)
- Skip content check for static files with the same size and
modification time
[`afb2d9a`](https://redirect.github.com/gohugoio/hugo/commit/afb2d9ac)
[@​bep](https://redirect.github.com/bep)
[#​15572](https://redirect.github.com/gohugoio/hugo/issues/15572)
- commands: Rebuild assets also mounted as static
[`b755c9d`](https://redirect.github.com/gohugoio/hugo/commit/b755c9d5)
[@​xndvaz](https://redirect.github.com/xndvaz)
[#​15567](https://redirect.github.com/gohugoio/hugo/issues/15567)
- hugolib: Keep npm installs in their test directory
[`2056ed6`](https://redirect.github.com/gohugoio/hugo/commit/2056ed69)
[@​xndvaz](https://redirect.github.com/xndvaz)
[#​15568](https://redirect.github.com/gohugoio/hugo/issues/15568)
- Upgrade to Go 1.27.4
[`bca2cec`](https://redirect.github.com/gohugoio/hugo/commit/bca2cec8)
[@​bep](https://redirect.github.com/bep)
- common/htime: Preserve location of time.Time values
[`5922421`](https://redirect.github.com/gohugoio/hugo/commit/59224216)
[@​jmooring](https://redirect.github.com/jmooring)
[#​8895](https://redirect.github.com/gohugoio/hugo/issues/8895)
[#​15565](https://redirect.github.com/gohugoio/hugo/issues/15565)
- markup/highlight: Escape wrapperClass
[`bdde5aa`](https://redirect.github.com/gohugoio/hugo/commit/bdde5aa5)
[@​bep](https://redirect.github.com/bep)
- modules: Restrict vendor module paths to the \_vendor directory
[`d41a8a1`](https://redirect.github.com/gohugoio/hugo/commit/d41a8a19)
[@​bep](https://redirect.github.com/bep)
- hugofs: Preserve directory casing in resource matches
[`5b44cfc`](https://redirect.github.com/gohugoio/hugo/commit/5b44cfce)
[@​xndvaz](https://redirect.github.com/xndvaz)
[#​7686](https://redirect.github.com/gohugoio/hugo/issues/7686)
[#​10112](https://redirect.github.com/gohugoio/hugo/issues/10112)
- config: Make command-line flags override OS environment variables
[`d5ba1aa`](https://redirect.github.com/gohugoio/hugo/commit/d5ba1aaa)
[@​bep](https://redirect.github.com/bep)
[#​15549](https://redirect.github.com/gohugoio/hugo/issues/15549)
[#​15550](https://redirect.github.com/gohugoio/hugo/issues/15550)
- tpl/resources: Accept \[]any of resources in Concat
[`e6a470c`](https://redirect.github.com/gohugoio/hugo/commit/e6a470cb)
[@​jmooring](https://redirect.github.com/jmooring)
[#​15546](https://redirect.github.com/gohugoio/hugo/issues/15546)
- warpc: Keep function names in WASM binaries, set WebP stack size
[`1a014e5`](https://redirect.github.com/gohugoio/hugo/commit/1a014e53)
[@​bep](https://redirect.github.com/bep)
[#​15522](https://redirect.github.com/gohugoio/hugo/issues/15522)
- warpc, commands: Recover from broken WASM instances in the server
[`5086d5f`](https://redirect.github.com/gohugoio/hugo/commit/5086d5fc)
[@​bep](https://redirect.github.com/bep)
[#​15522](https://redirect.github.com/gohugoio/hugo/issues/15522)
- resources: Resolve remote media type from Hugo's media types
[`3a1985b`](https://redirect.github.com/gohugoio/hugo/commit/3a1985b1)
[@​AnaTejeda1](https://redirect.github.com/AnaTejeda1)
[#​11601](https://redirect.github.com/gohugoio/hugo/issues/11601)
- langs/i18n: Add failing test for project translation precedence
[`2b0e1e1`](https://redirect.github.com/gohugoio/hugo/commit/2b0e1e1e)
[@​jmooring](https://redirect.github.com/jmooring)
[#​15518](https://redirect.github.com/gohugoio/hugo/issues/15518)
- ci: Upgrade setup-ruby and Ruby
[`185a609`](https://redirect.github.com/gohugoio/hugo/commit/185a609e)
[@​jmooring](https://redirect.github.com/jmooring)
- tpl/strings: Rewrite truncate using the hhtml scanner
[`6b0c89c`](https://redirect.github.com/gohugoio/hugo/commit/6b0c89c3)
[@​bep](https://redirect.github.com/bep)
[#​15505](https://redirect.github.com/gohugoio/hugo/issues/15505)
[#​15509](https://redirect.github.com/gohugoio/hugo/issues/15509)
#### Dependency Updates
- build(deps): bump golang.org/x/image from 0.47.0 to 0.48.0
[`29bcc86`](https://redirect.github.com/gohugoio/hugo/commit/29bcc86d)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump golang.org/x/text from 0.43.0 to 0.44.0
[`4f8354e`](https://redirect.github.com/gohugoio/hugo/commit/4f8354eb)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump github.com/spf13/pflag from 1.0.10 to 1.1.0
[`6aebad4`](https://redirect.github.com/gohugoio/hugo/commit/6aebad49)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump github.com/getkin/kin-openapi from 0.152.0 to
0.153.0
[`8846854`](https://redirect.github.com/gohugoio/hugo/commit/88468544)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump github.com/bits-and-blooms/bitset
[`0586add`](https://redirect.github.com/gohugoio/hugo/commit/0586add2)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump github.com/tdewolff/minify/v2 from 2.24.24 to
2.24.25
[`45dfa4e`](https://redirect.github.com/gohugoio/hugo/commit/45dfa4e8)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump github.com/yuin/goldmark from 1.8.6 to 1.8.7
[`d2010fc`](https://redirect.github.com/gohugoio/hugo/commit/d2010fcc)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough
v0.5.0 => v0.6.0
[`2d6cf3a`](https://redirect.github.com/gohugoio/hugo/commit/2d6cf3a8)
[@​bep](https://redirect.github.com/bep)
- deps: Upgrade github.com/bep/imagemeta v1.1.0 => v1.1.1
[`b6fa2fe`](https://redirect.github.com/gohugoio/hugo/commit/b6fa2fe5)
[@​bep](https://redirect.github.com/bep)
- build(deps): bump golang.org/x/net from 0.61.0 to 0.62.0
[`fe34313`](https://redirect.github.com/gohugoio/hugo/commit/fe34313e)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump github.com/tdewolff/minify/v2 from 2.24.22 to
2.24.24
[`7ff95e0`](https://redirect.github.com/gohugoio/hugo/commit/7ff95e04)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump github.com/gobwas/glob from 1.0.0 to 1.1.0
[`98ab2ff`](https://redirect.github.com/gohugoio/hugo/commit/98ab2ff7)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
- build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6
[`a1668da`](https://redirect.github.com/gohugoio/hugo/commit/a1668da3)
[@​dependabot](https://redirect.github.com/dependabot)\[bot]
#### Documentation
- Update README.md
[`8502b60`](https://redirect.github.com/gohugoio/hugo/commit/8502b600)
[@​jmooring](https://redirect.github.com/jmooring)
[#​15512](https://redirect.github.com/gohugoio/hugo/issues/15512)
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled because a matching PR was automerged
previously.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/prometheus/client_java).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjguMCIsInVwZGF0ZWRJblZlciI6IjQ0LjI0OS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent f7c940c commit 029772b
1 file changed
Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments