-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
treewide: fix lints Arg to lib.optional is a list
*Flags not a list
#337743
base: master
Are you sure you want to change the base?
Conversation
Why are we not rebuild 0 here? |
This is missing some explanation - shouldn't these which add a list with a single element not keep |
I would keep |
I'll check later, at the nixos helsinki meet up rn. |
probably because some nix variables where turned into bash strings and the type of those changed?
IMO doesn't really matter in the end. Removing the [] could cause a bigger diff because they are sometimes not on one line. PS: Before anyone gets the idea to make a treewide PR to convert lib.optional to lib.optionals [ ]. Just don't there is no benefit and just noise which will crawl into many open PRs. |
|
||
nativeCheckInputs = [ perl ]; | ||
|
||
buildInputs = [ libpcap ]; | ||
|
||
configureFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "ac_cv_linux_vers=2"; | ||
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "ac_cv_linux_vers=2" ]; |
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.
This was also correct before I think
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.
Same thing, it feels more correct to use lib.optionals
here. IMHO, it is important for contributors to explicitly see the brackets to understand that this is a list.
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.
*Flags not a list
applies
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.
Well the darwin rebuild count is over 5000 so either this needs to target staging or this needs to be fixed to rebuild 0. I'd prefer the latter.
The rebuilds are due to fixing The dependency choosing in
I'll split the |
Fun. Maybe split out all the rebuild-0 bits and then just send the rest to staging? |
https://www.github.com/nix-community/nixpkgs-lint
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.