-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 when reading in invalid config.toml of module #9417
Comments
This is an upstream issue. I will update the TOML library; if that doesn't work, please file an issue at https://github.com/pelletier/go-toml/issues |
See #9439 |
With v0.92.0 I am unable to reproduce the panic as described. git clone --single-branch -b hugo-github-issue-9417 https://github.com/jmooring/hugo-testing hugo-github-issue-9417
cd hugo-github-issue-9417
cd test-site
hugo server
|
Inside your file |
@deining I updated the example and can reproduce the problem. The fact that your invalid config.toml file exists in a module is irrelevant. The panic occurs when unmarshaling any TOML file where the last line1 contains an incomplete key (example: @bep I confirm that this is resolved with #9440. No panic, and the error is:
Footnotes
|
Great.
You are right. I updated my initial post with instructions how to reproduce the problem quickly.
Glad to see that the issue was fixed upstream already. |
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. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
How to reproduce
At your command prompt, issue the following commands:
Now, hugo panics:
The text was updated successfully, but these errors were encountered: