github.com/gohugoio/hugo breaking changes
github.com/gohugoio/hugo v0.171.0 (November 30, 2026) is its newest release with breaking changes, 19 of them. The first: Removed github.com/gohugoio/hugo/cache/dynacache.Options.MaxSize. Every breaking API change we have recorded in github.com/gohugoio/hugo on Go modules: 19 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v0.171.0, released November 30, 2026.
Packages on Go modules run on Go. Go end of life dates.
github.com/gohugoio/hugo v0.171.0 breaking changes
- Removed
github.com/gohugoio/hugo/cache/dynacache.Options.MaxSize
github.com/gohugoio/hugo/cache/dynacache.Options.MaxSize was removed in github.com/gohugoio/hugo v0.171.0 pkg.go.dev - Removed
github.com/gohugoio/hugo/cache/dynacache.Options.MinMaxSize
github.com/gohugoio/hugo/cache/dynacache.Options.MinMaxSize was removed in github.com/gohugoio/hugo v0.171.0 pkg.go.dev - Removed
github.com/gohugoio/hugo/cache/dynacache.OptionsPartition.CalculateMaxSize
github.com/gohugoio/hugo/cache/dynacache.OptionsPartition.CalculateMaxSize was removed in github.com/gohugoio/hugo v0.171.0 pkg.go.dev - Removed
github.com/gohugoio/hugo/cache/dynacache.OptionsPartition.WeightFraction
github.com/gohugoio/hugo/cache/dynacache.OptionsPartition.WeightFraction was removed in github.com/gohugoio/hugo v0.171.0 pkg.go.dev - Removed
github.com/gohugoio/hugo/common/herrors.ErrFeatureNotAvailable
The ErrFeatureNotAvailable error is renamed to ErrExecNotFound. Update code that checks for the old name. pkg.go.dev - Removed
github.com/gohugoio/hugo/common/hexec.IsNotFound
github.com/gohugoio/hugo/common/hexec.IsNotFound was removed in github.com/gohugoio/hugo v0.171.0 pkg.go.dev - Removed
github.com/gohugoio/hugo/helpers.PathSpec.URLEscape
github.com/gohugoio/hugo/helpers.PathSpec.URLEscape was removed in github.com/gohugoio/hugo v0.171.0 pkg.go.dev - Renamed
github.com/gohugoio/hugo/common/herrors.FeatureNotAvailableError
Use github.com/gohugoio/hugo/common/herrors.ExecNotFoundError instead. pkg.go.dev - Renamed
github.com/gohugoio/hugo/common/herrors.IsFeatureNotAvailableError
Use github.com/gohugoio/hugo/common/herrors.IsExecNotFoundError instead. pkg.go.dev - Renamed
github.com/gohugoio/hugo/resources.NewFeatureNotAvailableTransformer
Use github.com/gohugoio/hugo/resources.NewExecNotFoundTransformer instead. pkg.go.dev - Behavior changed
Pages with the same language weight are now sorted by Lang as a tiebreaker, which can change page order. github.com - Behavior changed
The hash sign (#) is now stripped from published file names, so generated file names differ from before. github.com - Behavior changed
Templates without an output format in the file name are now used for all output formats sharing that suffix, not just the first one. github.com - Behavior changed
Sitemap, sitemap index and robots.txt templates must now be selected by output format, so a user-provided all.txt no longer renders robots.txt. github.com - Behavior changed
strings.Truncate
strings.Truncate now returns a string for string input instead of HTML-escaped content, which changes output in some formats. github.com - Default changed
renderHooks.{image,link}.useEmbedded
The embedded link and image render hooks now default to fallback for all projects. If you relied on them being disabled, set useEmbedded to "never". github.com - Signature changed
github.com/gohugoio/hugo/helpers.NewContentSpec
Was func NewContentSpec(config.AllProvider, loggers.Logger, afero.Fs, *hexec.Exec) (*ContentSpec, error); now func NewContentSpec(config.AllProvider, loggers.Logger, afero.Fs, *hexec.Exec, highlight.Cache) (*ContentSpec, error). pkg.go.dev - Signature changed
github.com/gohugoio/hugo/markup/highlight.New
Was func New(Config) Highlighter; now func New(Config, Cache) Highlighter. pkg.go.dev - Signature changed
github.com/gohugoio/hugo/tpl/strings.Namespace.Truncate
Was func Truncate(any, ...any) (template.HTML, error); now func Truncate(any, ...any) (any, error). pkg.go.dev
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.