-
-
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
hugo deploy: runtime error with empty section [[deployment.matchers]] #9220
Comments
The merged fix works and is certainly an improvement, thanks for addressing this so quickly. |
I agree. /cc @jmooring |
Need guidance. Hugo neither warns nor errors with this config:
To be consistent, it seems like this shouldn't produce warnings or errors either:
Please advise. |
I have changed my mind. We throw error on these situations -- people need to fix their config. |
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:
Take an arbitrary hugo site and add the section below to the site's config.toml:
If you now run
hugo deploy
, you end up with a runtime error:As soon as you uncomment the last two lines of the added section, everything works fine again.
Certainly a low priority issue, but I reckon having an empty
[[deployment.matchers]]
section could/should be handled more gracefully andhugo
shouldn't choke on this.The text was updated successfully, but these errors were encountered: