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

Panic after upgraded. #219

Open
YiuTerran opened this issue Nov 23, 2022 · 0 comments
Open

Panic after upgraded. #219

YiuTerran opened this issue Nov 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@YiuTerran
Copy link

Describe the bug

After upgrading eureka from v0.9.0 => v0.9.3 using hugo mod get -u, exec hugo in powershell, it reports:

panic: interface conversion: interface {} is string, not maps.Params

goroutine 1 [running]:
github.com/gohugoio/hugo/config.(*defaultConfigProvider).Merge(0xc000694550, {0x0, 0x0}, {0x1ea5640, 0xc000572180?})
        /root/project/hugo/config/defaultConfigProvider.go:232 +0xc94
github.com/gohugoio/hugo/hugolib.configLoader.collectModules.func1(0xc00058efc0)
        /root/project/hugo/hugolib/config.go:388 +0x222
github.com/gohugoio/hugo/modules.(*Client).Collect(0xc00047a2c0)
        /root/project/hugo/modules/collect.go:79 +0x1c4
github.com/gohugoio/hugo/hugolib.configLoader.collectModules({{0x26a9220, 0xc000694550}, {{0x26a8780, 0x37242c0}, {0x26abd50, 0xc000442cc0}, {0x0, 0x0}, {0xc000687a00, 0xc}, ...}}, ...)
        /root/project/hugo/hugolib/config.go:415 +0x525
github.com/gohugoio/hugo/hugolib.LoadConfig({{0x26a8780, 0x37242c0}, {0x26abd50, 0xc000442cc0}, {0x0, 0x0}, {0xc000687a00, 0xc}, {0xc000687a00, 0xc}, ...}, ...)
        /root/project/hugo/hugolib/config.go:143 +0xb1e
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig(0xc000396400)
        /root/project/hugo/commands/commandeer.go:343 +0x368
github.com/gohugoio/hugo/commands.newCommandeer(0x1, 0x1, 0x0, 0xc0002f3860, {0x268cfc0?, 0xc0006d69e0}, 0xc0006d6b90, {0x0, 0x0, 0x0})
        /root/project/hugo/commands/commandeer.go:227 +0x31f
github.com/gohugoio/hugo/commands.initializeConfig(0x0?, 0x0?, 0x0?, 0x0?, {0x268cfc0?, 0xc0006d69e0?}, 0x0?)
        /root/project/hugo/commands/hugo.go:125 +0x3b
github.com/gohugoio/hugo/commands.(*commandsBuilder).newHugoCmd.func1(0xc00027c900, {0x1f6b69b?, 0x0?, 0x0?})
        /root/project/hugo/commands/commands.go:165 +0x135
github.com/spf13/cobra.(*Command).execute(0xc00027c900, {0xc000096200, 0x0, 0x0})
        /root/project/gomodcache/github.com/spf13/cobra@v1.6.1/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc00027c900)
        /root/project/gomodcache/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/gohugoio/hugo/commands.Execute({0xc000096200, 0x0, 0x0})
        /root/project/hugo/commands/hugo.go:92 +0xbd
main.main()
        /root/project/hugo/main.go:23 +0x56

Environment

  • OS: windows 11
  • Hugo Version: v0.106.0
  • Eureka Version: v0.9.3
@YiuTerran YiuTerran added the bug Something isn't working label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant