-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
check-meta.nix: make non-source consistent with documentation #175495
Conversation
@risicle should be added as a reviewer (am I able to add reviewers to my own PRs?) |
Yes it you're a member of the maintainer team which you can join by being a maintainer of a package and accepting the invite |
Yeah, I really procrastinated a long time before doing this. |
Resolved the merge conflict and squashed. |
What error does this now give if you assign a single |
Using these instructions:
|
The documentation for `meta.sourceProvenance` in `doc/stdenv/meta.chapter.md` says: "the `meta.sourceProvenance` attribute should be a list containing one or more value..." Let's update check-meta.nix to require that `meta.sourceProvenance` is a list, as the documentation says, rather than a single element. Adding two extra keystrokes `[` and `]` when filling out this field is an insignificant burden for package authors, and being able to assume that the `meta.sourceProvenance` field is always a list greatly simplifies any code that acts on the value of this field. Since `meta.sourceProvenance` was just merged a few hours ago now is the easiest time to fix this: nobody is using the feature yet.
Rebased. |
due to NixOS#175495 Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Description of changes
The documentation for
meta.sourceProvenance
indoc/stdenv/meta.chapter.md
says: "themeta.sourceProvenance
attribute should be a list containing one or more value..."Let's update check-meta.nix to require that
meta.sourceProvenance
is a list, as the documentation says, rather than a single element.Adding two extra keystrokes
[
and]
when filling out this field is an insignificant burden for package authors, and being able to assume that themeta.sourceProvenance
field is always a list greatly simplifies any code that acts on the value of this field. For example, it simplifies thesourceProvenance
example given incheck-meta.nix
; the simplification is included in this PR.Since
meta.sourceProvenance
was just merged a few hours ago now is the easiest time to fix this: nobody is using the feature yet.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes