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
Structured maintainers #31739
Structured maintainers #31739
Conversation
lib/attrsets.nix
Outdated
@@ -1,4 +1,4 @@ | |||
{ lib }: | |||
{ lib, ... }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? ...
considered harmful.
This seems overly complicated to me. Why do we need that all that funky |
I would very much prefer to only have that! My reasoning for implementing a flag is based on:
Having a flag will allows us to get to use this data before support is added to Hydra. |
1819fe9
to
9520698
Compare
We discussed this on IRC, and we'll just move to the new format, after which @edolstra will fix Hydra. |
I would like to take this further (see #34842 (comment)). @moretea did you use a script to generate the attr sets? |
I think the feature has been implemented somehow, so any PRs about maintainer list structure should be discussed relative to what we have now. |
Motivation for this change
Enables having proper metadata about maintainers, which is useful for NixOS/rfcs#19 (maintainers file) / NixOS/rfcs#21 (PR's on Hydra).
Example
Things done
Verified that not everything is completely broken by running:
Why the manipulation of the data structure at the bottom of the file?
If
addGitHub
would not be applied to the attrset, then keys of the attrset cannot be observed when accessing them viapkgs.my_pkg.meta.maintainers
.Remaining questions