Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config index out of bounds in hugo mod init #8697

Closed
bep opened this issue Jun 26, 2021 · 1 comment
Closed

Config index out of bounds in hugo mod init #8697

bep opened this issue Jun 26, 2021 · 1 comment
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Jun 26, 2021

panic: runtime error: slice bounds out of range [1:0]

goroutine 1 [running]:
github.com/gohugoio/hugo/resources/page.PermalinkExpander.validate(0xc000661830, 0x0, 0xc000661500, 0x0, 0x0, 0x6)
	/Users/bep/dev/go/gohugoio/hugo/resources/page/permalinks.go:182 +0x29c
github.com/gohugoio/hugo/resources/page.PermalinkExpander.parse(0xc000661830, 0x0, 0xc000661500, 0xc000661860, 0xc000302810, 0x0, 0xc00000e450)
	/Users/bep/dev/go/gohugoio/hugo/resources/page/permalinks.go:125 +0x365
github.com/gohugoio/hugo/resources/page.NewPermalinkExpander(0xc000661500, 0xc0000472b8, 0x0, 0x2cd83b0, 0xc0003d8f60, 0x0)
	/Users/bep/dev/go/gohugoio/hugo/resources/page/permalinks.go:94 +0x785
github.com/gohugoio/hugo/resources.NewSpec(0xc000661500, 0xc000661530, 0x2cc5040, 0xc000047198, 0x2cfd4f8, 0xc000660ed0, 0x2cc5060, 0xc00053a9e8, 0xc00051d200, 0xa, ...)
	/Users/bep/dev/go/gohugoio/hugo/resources/resource_spec.go:74 +0x1d2
github.com/gohugoio/hugo/deps.New(0x2cfd4f8, 0xc000660ed0, 0xc000675200, 0xc00016f130, 0x0, 0x0, 0x2cfaf50, 0xc000223f90, 0xc000af0000, 0x1c, ...)
	/Users/bep/dev/go/gohugoio/hugo/deps/deps.go:246 +0x2e5
github.com/gohugoio/hugo/hugolib.configLoader.applyDeps(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/bep/dev/go/gohugoio/hugo/hugolib/hugo_sites.go:481 +0x358
github.com/gohugoio/hugo/hugolib.newHugoSites(0x2cfd4f8, 0xc000660ed0, 0xc000675200, 0x0, 0x0, 0x0, 0x2cfaf50, 0xc000223f90, 0x0, 0x0, ...)
	/Users/bep/dev/go/gohugoio/hugo/hugolib/hugo_sites.go:378 +0x625
github.com/gohugoio/hugo/hugolib.NewHugoSites(0x2cfd4f8, 0xc000660ed0, 0xc000675200, 0x0, 0x0, 0x0, 0x2cfaf50, 0xc000223f90, 0x0, 0x0, ...)
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant