-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
CheckMeta does not work #191124
Comments
Possibly related to #6794 (comment) ? |
That issue is 😱, but I'm not sure this is the one I'm running into since even blatant errors like setting |
Can you provide a minimal reproducer? That much seems to work fine for me: with import <nixpkgs> { config.checkMeta = true; };
runCommand "foo" {
meta.description = true;
} ""
|
Oh no, I think I found the issue: The meta type check is not started if the package has other issues. This is a bug only surfaced through #177272. See the line This should reproduce on master on insecure or unfree packages. The derivation will fail with the usual warning, but actually it should fail with "invalid meta" instead. |
- Enable metadata checking by default, see NixOS#25304 (comment) - Check metadata before any other package issues, see NixOS#191124 (comment) - Document that type checks only apply to the top level of nested values. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Can this be closed now? |
I don't think we made any significant progress here, since the original fix got reverted. |
Sorry for the bump -- @piegamesde to your knowledge, is |
I don't know of any changes on this |
I just noticed that meta attributes are actually never checked locally. I noticed that there is an undocumented attribute
config.checkMeta
which defaults tofalse
, but even when setting it to true and adding obvious errors to a derivation I cannot get it to fail. Ideally, such an option should be enabled by default IMO.Arbitrarily pinging @ckiee @Artturin @ncfavier
The text was updated successfully, but these errors were encountered: