Hugo 0.112.0 introduced major changes to configuration handling.
I am not sure if there is a regression regarding watching config directories of modules.
I created a minimal test site to illustrate the issue:
git clone --single-branch --branch watch-module-config https://github.com/simonheimlicher/hugo-testing.git watch-module-config
If I run hugo server
as follows with version 0.111.3, it watches the config directories of the included module:
HUGO_MODULE_WORKSPACE=watch-module-config.work hugo@0.111.3 server --disableFastRender
Start building sites …
hugo v0.111.3+extended darwin/arm64 BuildDate=unknown
| EN
-------------------+-----
Pages | 9
Paginator pages | 0
Non-page files | 0
Static files | 1
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 4 ms
Watching for changes in /Users/shz/Resources/Code/hugo-testing/watch-module-config-github/{hugo-project,modules}
Watching for config changes in /Users/shz/Resources/Code/hugo-testing/watch-module-config-github/hugo-project/hugo.yaml, /Users/shz/Resources/Code/hugo-testing/watch-module-config-github/modules/hugo-mwe-theme/config/_default, /Users/shz/Resources/Code/hugo-testing/watch-module-config-github/hugo-project/go.mod, /Users/shz/Resources/Code/hugo-testing/watch-module-config-github/hugo-project/watch-module-config.work
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Change of config file detected, rebuilding site.
2023-07-30 00:06:00.633 +0200
Rebuilt in 62 ms
However, with any version from 0.112.0 up to 0.115.3, it no longer watches the config directories of modules:
HUGO_MODULE_WORKSPACE=watch-module-config.work hugo server --disableFastRender --port 1314
Watching for changes in /Users/shz/Resources/Code/hugo-testing/watch-module-config-github/{hugo-project,modules}
Watching for config changes in /Users/shz/Resources/Code/hugo-testing/watch-module-config-github/hugo-project/hugo.yaml
Start building sites …
hugo v0.115.4+extended darwin/arm64 BuildDate=unknown
| EN
-------------------+-----
Pages | 9
Paginator pages | 0
Non-page files | 0
Static files | 1
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 6 ms
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:1314/ (bind address 127.0.0.1)
Press Ctrl+C to stop
What am I doing wrong that this worked in 0.111.3 and stopped working in 0.112.0?
Thanks,
Simon