Hi. I’m looking for help clarifying a Hugo behavior change that was introduced in v0.146.0.
We have a multilingual site that mounts content from directories outside our project. When we run builds, we have it fail in the event of path conflict warnings, like this:
hugo --printPathWarnings --panicOnWarning
(we don’t want people to add content that won’t actually be published).
Before v0.146.0, we were able to provide English content as a fallback for Japanese pages that don’t exist, using the method described here: Release v0.96.0 · gohugoio/hugo · GitHub
After upgrading to 0.146.0, builds began to fail due to path warnings like these, where the English and Japanese files conflict with one another:
WARN Duplicate content path: "/runner/executors/docker_autoscaler" file: "/builds/gitlab-com/localization/tech-docs-forked-projects/prod/gitlab-runner/docs-locale/ja-jp/executors/docker_autoscaler.md" file: "/builds/gitlab-com/localization/tech-docs-forked-projects/prod/gitlab-runner/docs/executors/docker_autoscaler.md"
The problem is also present in the latest release (currently 0.150.0).
I set up an example project to illustrate the problem: Sarah German / Hugo path clash demo · GitLab (see the README for steps to reproduce).
I’m not sure if this is a bug or not since the fallback mount functionality wasn’t documented. From my perspective, it does seem like a bug since the pages do publish as expected if you ignore the path warnings.
Maybe the warnings are just incorrect? Or are we trying to do something that’s no longer supported?
Thanks!