Skip to content

fix(hugo): clear deprecation warnings before they break the build (DOCS-150) - #3865

Merged
matthewhelmke merged 1 commit into
chainguard-dev:mainfrom
matthewhelmke:matthewhelmke/docs-150-resolve-hugo-deprecation-warnings-before-they-break-the
Aug 28, 2026
Merged

fix(hugo): clear deprecation warnings before they break the build (DOCS-150)#3865
matthewhelmke merged 1 commit into
chainguard-dev:mainfrom
matthewhelmke:matthewhelmke/docs-150-resolve-hugo-deprecation-warnings-before-they-break-the

Conversation

@matthewhelmke

Copy link
Copy Markdown
Collaborator

What

Clears the five Hugo deprecation warnings surfaced by the move to hugo-extended under Dependabot management (see #3858 and the 0.164.0 compat fix #3864). None block the build today, but each becomes a hard error in a future Hugo release — exactly as getjson and .Site.Author did in 0.164.0.

Resolves DOCS-150.

Changes

Deprecated Since Replacement File
languageCode config key v0.158.0 locale config/_default/config.toml
languages.en.languageName v0.158.0 label config/_default/languages.toml
module.mounts.includeFiles v0.153.0 files config/_default/config.toml
.Site.Data v0.156.0 hugo.Data layouts/partials/notice.html, layouts/shortcodes/package-mappings/{image,fedora,debian}-*.html
.Site.LanguageCode v0.158.0 .Site.Language.Locale layouts/_default/baseof.html

A repo-wide grep of config/ and layouts/ confirms these were the only occurrences of all five patterns.

Verification

Built with Hugo 0.164.0 (npm ci && npm run build):

  • Zero deprecated: lines in the output (was 5).
  • Build succeeds: 1633 pages, no errors.
  • Rendered output unchanged: <html lang=en-US> renders identically (the new locale value feeds .Site.Language.Locale), and the package-mappings tables still render their data via hugo.Data.

0.164.0 is also the latest published hugo-extended on npm, so pinned and latest are the same today.

Out of scope: the Dart Sass @import/darken()/slash-div warnings are a separate deprecation track (Bootstrap + our SCSS, not Hugo config).


Created in collaboration with Claude Code running Claude Opus 4.8 on 2026-08-28.

…CS-150)

Hugo 0.164.0 emits five deprecation warnings that will become hard
errors in a future release. Migrate each to its replacement:

- languageCode config key -> locale (v0.158.0)
- languages.en.languageName -> label (v0.158.0)
- module.mounts.includeFiles -> files (v0.153.0)
- .Site.Data -> hugo.Data (v0.156.0)
- .Site.LanguageCode -> .Site.Language.Locale (v0.158.0)

Verified against Hugo 0.164.0: zero deprecation warnings, build
succeeds (1633 pages), and rendered output is unchanged
(<html lang=en-US> and the package-mappings tables both intact).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@matthewhelmke
matthewhelmke requested review from a team as code owners August 28, 2026 14:52
@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for ornate-narwhal-088216 ready!

Name Link
🔨 Latest commit a922e74
🔍 Latest deploy log https://app.netlify.com/projects/ornate-narwhal-088216/deploys/6a91a0a692ca640008c8cec4
😎 Deploy Preview https://deploy-preview-3865--ornate-narwhal-088216.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@matthewhelmke
matthewhelmke merged commit 082e201 into chainguard-dev:main Aug 28, 2026
9 checks passed
@matthewhelmke
matthewhelmke deleted the matthewhelmke/docs-150-resolve-hugo-deprecation-warnings-before-they-break-the branch August 28, 2026 15:13
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.

2 participants