Hi,
I’m trying to install docsy a Hugo theme for technical documentation sets, but I have runtime error.
I have already written an issue on the official space, but they cannot help me and they suggested me to write here.
I have:
- go version go1.15.8 linux/amd64
- debian 11 bullseye
- hugo extended. I have had the same kind of error using both release 0.83.1 and 0.75.1
When I run hugo server
I have something like the below error.
What could my problem be?
Thank you
Start building sites …
panic: runtime error: index out of range [5] with length 1
goroutine 114 [running]:
github.com/bep/gitmap.toGitInfo(0xc00020ebd0, 0x66, 0x20669b0, 0x1, 0x0)
/go/pkg/mod/github.com/bep/gitmap@v1.1.2/gitmap.go:128 +0x3d6
github.com/bep/gitmap.Map(0xc00004a044, 0x31, 0x0, 0x0, 0x31, 0x1, 0x0)
/go/pkg/mod/github.com/bep/gitmap@v1.1.2/gitmap.go:90 +0x5b3
github.com/gohugoio/hugo/hugolib.newGitInfo(0x23b0a38, 0xc000238a20, 0xd, 0x1, 0xc00007b830)
/root/project/hugo/hugolib/gitinfo.go:40 +0x6a
github.com/gohugoio/hugo/hugolib.(*HugoSites).loadGitInfo(0xc00025ee40, 0xc0004d25a0, 0xc)
/root/project/hugo/hugolib/hugo_sites.go:400 +0x8b
github.com/gohugoio/hugo/hugolib.newHugoSites.func4(0x4d1ac8, 0x8, 0x203000, 0x13a8d60)
/root/project/hugo/hugolib/hugo_sites.go:366 +0x2e
github.com/gohugoio/hugo/lazy.(*Init).Do.func1()
/root/project/hugo/lazy/init.go:97 +0x134
github.com/gohugoio/hugo/lazy.(*onceMore).Do(0xc0003d5e88, 0xc00007b900)
/root/project/hugo/lazy/once.go:53 +0xea
github.com/gohugoio/hugo/lazy.(*Init).Do(0xc0003d5e60, 0xc000100000, 0x0, 0x203000, 0x203000)
/root/project/hugo/lazy/init.go:79 +0x5b
github.com/gohugoio/hugo/lazy.(*Init).Do.func1()
/root/project/hugo/lazy/init.go:102 +0xbd
github.com/gohugoio/hugo/lazy.(*onceMore).Do(0xc0003d5ca8, 0xc00007b9e8)
/root/project/hugo/lazy/once.go:53 +0xea
github.com/gohugoio/hugo/lazy.(*Init).Do(0xc0003d5c80, 0x78, 0x1e54aa0, 0x23aa101, 0xc00070a280)
/root/project/hugo/lazy/init.go:79 +0x5b
github.com/gohugoio/hugo/hugolib.(*HugoSites).gitInfoForPage(0xc00025ee40, 0x23f4040, 0xc00076fc50, 0x0, 0x0, 0x1f422eb)
/root/project/hugo/hugolib/hugo_sites.go:193 +0x3a
github.com/gohugoio/hugo/hugolib.(*pageMap).newPageFromContentNode(0xc0008f5b60, 0xc0009f4000, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/project/hugo/hugolib/content_map_page.go:132 +0x37a
github.com/gohugoio/hugo/hugolib.(*pageMap).assembleSections.func1(0x234f178, 0x1, 0x1cba360, 0xc0009f4000, 0x1cdd800)
/root/project/hugo/hugolib/content_map_page.go:473 +0x235
github.com/armon/go-radix.recursiveWalk(0xc0009f4030, 0xc00056dd90, 0xc00007bd40)
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:519 +0xd7
github.com/armon/go-radix.recursiveWalk(0xc0008fefc0, 0xc00056dd90, 0xa19bf6)
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x74
github.com/armon/go-radix.(*Tree).Walk(...)
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:447
github.com/gohugoio/hugo/hugolib.(*pageMap).assembleSections(0xc0008f5b60, 0x0, 0xc0008ff020)
/root/project/hugo/hugolib/content_map_page.go:429 +0x90
github.com/gohugoio/hugo/hugolib.(*pageMap).assemblePages(0xc0008f5b60, 0x0, 0x0)
/root/project/hugo/hugolib/content_map_page.go:324 +0x73
github.com/gohugoio/hugo/hugolib.(*pageMaps).AssemblePages.func1(0xc0008f5b60, 0x0, 0x0)
/root/project/hugo/hugolib/content_map_page.go:711 +0x6c
github.com/gohugoio/hugo/hugolib.(*pageMaps).withMaps.func1(0x0, 0x0)
/root/project/hugo/hugolib/content_map_page.go:779 +0x2e
github.com/gohugoio/hugo/common/para.(*errGroupRunner).Run.func1(0x0, 0x0)
/root/project/hugo/common/para/para.go:52 +0x2f
golang.org/x/sync/errgroup.(*Group).Go.func1(0xc000aaf050, 0xc00047e120)
/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57 +0x59
created by golang.org/x/sync/errgroup.(*Group).Go
/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:54 +0x66