wangchucheng / hugo-eureka

Eureka is a feature-rich and highly customizable Hugo theme.
https://www.wangchucheng.com/en/docs/hugo-eureka/
Apache License 2.0
920 stars 192 forks source link

Panic after upgraded. #219

Open YiuTerran opened 1 year ago

YiuTerran commented 1 year ago

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