I just realized you released hugo 0.92. thanks for your continued work.
Using hugo 0.92, I can successfully build my site:
$ hugo
Start building sites …
hugo v0.92.0-B3549403+extended windows/amd64 BuildDate=2022-01-12T08:23:18Z VendorInfo=gohugoio
WARN 2022/01/13 12:56:26 .Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct simlar to the below:
{{ $path := "" }}
{{ with .File }}
{{ $path = .Path }}
{{ else }}
{{ $path = .Path }}
{{ end }}
Re-run Hugo with the flag --panicOnWarning to get a better error message.
...
Since I want to know which page is causing the trouble, I’m now using the --panicOnWarning
flag, as proposed.
hugo --panicOnWarning
However, after emitting the warning message, my build is stuck and hangs forever, and I don’t think this is the wanted behaviour here.
Fortunately, this happens with a publicly available site, so it should be easy to reproduce:
git clone --recurse-submodules --depth 1 https://github.com/google/docsy-example.git
cd docsy-example/
npm install
hugo --panicOnWarning