Deprecation info with latest hugo version 0.153.0

When using latest released hugo version 0.153.0, I was confronted with this message:

INFO  deprecated: module.mounts.lang was deprecated in Hugo v0.153.0 and will be removed in a future release. Replaced by the more powerful 'sites.matrix' setting, see https://gohugo.io/configuration/module/#mounts

It turned out that this warning was emitted due to the use of the contentDir setting in the languages section of my hugo.yaml:

languages:
  en:
    contentDir: content/en

I created a minimal repo on GitHub that demonstrates the issue:

Is the setting contentDir in a languages section deprecated now?

Please create a GitHub issue. If this was intentional we need to document it, else fix it.

Done: Deprecation info when setting contentDir for a language · Issue #14285 · gohugoio/hugo · GitHub

It’s a INFO not a warning.

But as we have added more than one dimension to the file mounts (language, version, role), it makes sense to consolidate all these into the … file mount configuration. This is legacy config that we’re slowly getting rid of, hence the deprecations.

I see the deprecation was now reverted in Revert deprecation logging for contentDir per language by bep · Pull Request #14290 · gohugoio/hugo · GitHub Thanks :slight_smile:

1 Like