My site rendered fine with 0.54. On 0.55, I get the error:
panic: invalid taxonomy state for /path/to/content/categories/the-work/_index.en.md with sections [categories the-work
goroutine 197 [running]:
github.com/gohugoio/hugo/hugolib.(*pageState).getTaxonomyNodeInfo(0xc0556535f0, 0xc0556cae40)
/root/project/hugo/hugolib/page.go:744 +0x1e7
github.com/gohugoio/hugo/hugolib.(*HugoSites).createMissingPages(0xc000466fc0, 0x0, 0x0)
/root/project/hugo/hugolib/hugo_sites.go:653 +0x339
github.com/gohugoio/hugo/hugolib.(*HugoSites).assemble(0xc000466fc0, 0xc055417540, 0xc0005f5c70, 0x20)
/root/project/hugo/hugolib/hugo_sites_build.go:245 +0x13a
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func2.2()
/root/project/hugo/hugolib/hugo_sites_build.go:98 +0x3c
runtime/trace.WithRegion(0x1239dc0, 0xc05541d5f0, 0xfe2c7a, 0x8, 0xc0005f5d20)
/usr/local/go/src/runtime/trace/annotation.go:137 +0xe9
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func2(0xc0007e05c0, 0x20)
/root/project/hugo/hugolib/hugo_sites_build.go:100 +0x23d
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func3()
/root/project/hugo/hugolib/hugo_sites_build.go:109 +0x2f
runtime/trace.WithRegion(0x1239dc0, 0xc05541d5f0, 0xfdfc99, 0x7, 0xc0007e06c8)
/usr/local/go/src/runtime/trace/annotation.go:137 +0xe9
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build(0xc000466fc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, …)
/root/project/hugo/hugolib/hugo_sites_build.go:111 +0x7bd
github.com/gohugoio/hugo/commands.(*commandeer).buildSites(...)
/root/project/hugo/commands/hugo.go:763
github.com/gohugoio/hugo/commands.(*commandeer).fullBuild.func3(0x8, 0x108fdd0)
/root/project/hugo/commands/hugo.go:313 +0x79
The Go Programming Language(0xc05541d5c0, 0xc055441a40)
/go/pkg/mod/golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f/errgroup/errgroup.go:58 +0x57
created by The Go Programming Language
/go/pkg/mod/golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f/errgroup/errgroup.go:55 +0x66
(There should be a closing bracket ] after “the-work”, but if I include that here, then the summary/details format breaks.)
My file /path/to/categories/the-work/_index.en.md has the contents:
---
title: "The Work" # this is set automatically based on config.LANGUAGE.toml. Do not change it here.
url: the-work/ # this is set automatically based on config.LANGUAGE.toml. Do not change it here.
translationKey: the-work # this is set automatically. Do not change.
---
I haven’t investigated very much, because I don’t know where to start. I do know that “the-work” in “[categories the-work]” in the error message comes from the path, not from the contents of the file. If I rename the path to content/categories/the-work2, then the panic error message also uses the-work2. If I edit “the-work” within _index.en.md it doesn’t change the error message.
I appreciate any suggestions for how to troubleshoot this!