We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hugo version
hugo v0.112.5+extended linux/amd64 BuildDate=unknown
$ hugo new site test $ rm hugo.toml $ cat > hugo.yaml << EOF baseURL: http://example.org/ languageCode: en-us title: My New Hugo Site params: EOF $ hugo Total in 3 ms panic: interface conversion: interface {} is nil, not maps.Params goroutine 1 [running]: github.com/gohugoio/hugo/config/allconfig.fromLoadConfigResult({0x2a39440, 0x3c13ce0}, {0x2a3c8d0, 0xc00025f320}, {{0x2a3a390, 0xc000054b00}, {0xc00085a860, 0x1, 0x1}, {{0xc0000460ac, ...}, ...}}) /home/jc/go/pkg/mod/github.com/gohugoio/[email protected]/config/allconfig/allconfig.go:743 +0x19f8 github.com/gohugoio/hugo/config/allconfig.LoadConfig({{0x2a39440, 0x3c13ce0}, {0x2a3c8d0, 0xc00025f320}, {0x2a3a390, 0xc000054ac0}, {0x0, 0x0}, {0x2370ba2, 0x6}, ...}) /home/jc/go/pkg/mod/github.com/gohugoio/[email protected]/config/allconfig/load.go:61 +0x49b github.com/gohugoio/hugo/commands.(*rootCommand).ConfigFromProvider.func1(0x25f3b8?) /home/jc/go/pkg/mod/github.com/gohugoio/[email protected]/commands/commandeer.go:219 +0x358 github.com/bep/lazycache.(*Cache[...]).GetOrCreate(0x2a4b600, 0x0, 0xc000d9f9c0?) /home/jc/go/pkg/mod/github.com/bep/[email protected]/lazycache.go:112 +0x142 github.com/gohugoio/hugo/commands.(*rootCommand).ConfigFromProvider(0xc00044fbc0?, 0x2a3a390?, {0x2a3a390, 0xc000054ac0}) /home/jc/go/pkg/mod/github.com/gohugoio/[email protected]/commands/commandeer.go:195 +0x68 github.com/gohugoio/hugo/commands.(*hugoBuilder).loadConfig(0xc000473900, 0x0?, 0x0) /home/jc/go/pkg/mod/github.com/gohugoio/[email protected]/commands/hugobuilder.go:1017 +0x3aa github.com/gohugoio/hugo/commands.(*rootCommand).Run(0xc0001443c0, {0x0?, 0x0?}, 0x0?, {0x0?, 0x0?, 0x0?}) /home/jc/go/pkg/mod/github.com/gohugoio/[email protected]/commands/commandeer.go:339 +0xf1 github.com/bep/simplecobra.(*Commandeer).compile.func1(0xc000005800?, {0x3c14348?, 0x0?, 0x0?}) /home/jc/go/pkg/mod/github.com/bep/[email protected]/simplecobra.go:113 +0x52 github.com/spf13/cobra.(*Command).execute(0xc000005800, {0xc000040220, 0x0, 0x0}) /home/jc/go/pkg/mod/github.com/spf13/[email protected]/command.go:940 +0x862 github.com/spf13/cobra.(*Command).ExecuteC(0xc000005800) /home/jc/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068 +0x3bd github.com/spf13/cobra.(*Command).ExecuteContextC(...) /home/jc/go/pkg/mod/github.com/spf13/[email protected]/command.go:1001 github.com/bep/simplecobra.(*Exec).Execute(0xc000015540, {0x2a2de78?, 0xc000044190?}, {0xc000040220?, 0x511e48?, 0xc00007b168?}) /home/jc/go/pkg/mod/github.com/bep/[email protected]/simplecobra.go:155 +0xd9 github.com/gohugoio/hugo/commands.Execute({0xc000040220, 0x0, 0x0}) /home/jc/go/pkg/mod/github.com/gohugoio/[email protected]/commands/commandeer.go:65 +0x312 main.main() /home/jc/go/pkg/mod/github.com/gohugoio/[email protected]/main.go:25 +0x65
Does not happen with TOML.
The text was updated successfully, but these errors were encountered:
Don't panic on empty yaml config params
9b5e7bf
Fixes gohugoio#11047
a7d6b14
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.
Sorry, something went wrong.
No branches or pull requests
What version of Hugo are you using (
hugo version
)?Does not happen with TOML.
The text was updated successfully, but these errors were encountered: