gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.38k stars 7.49k forks source link

disableKinds: no error when using something invalid #11822

Closed godalming123 closed 10 months ago

godalming123 commented 10 months ago

There is no error/warning displayed when disableKinds has an invalid value:

disableKinds = [ 'somerandomval' ]

Having an error is useful because when a user tries to disable part of hugo's built in functionality, they should know if their disableKinds option is actually doing anything.

What version of Hugo are you using (hugo version)?

hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740 linux/amd64 BuildDate=2023-12-08T08:47:45Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

Yes

jmooring commented 10 months ago

Unable to reproduce with v0.121.1

site config

disableKinds = ['somerandomval']

build

WARN  Unknown kind "somerandomval" in disableKinds configuration.
Start building sites … 
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended linux/amd64 BuildDate=2023-12-08T08:47:45Z VendorInfo=gohugoio
github-actions[bot] commented 9 months ago

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.