-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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: remove unused with
statements from maintainer lists
#330664
Conversation
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.
✅ Looks good!
Thanks! Btw there's a |
with
statements from maintainer lists
6b35a80
to
397bdf7
Compare
Done |
I'll revisit after 1 hour |
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
What's the value of removing these besides "shush the linter"? Given that we want packages ideally to have maintainers anyways, I'd argue that keeping these around might be worthwhile? They probably also don't hurt performance, or at the very least could easily be optimized away to have no performance impact. I'd argue that the linter is wrong to complain about cases like these, and should distinguish from other cases I'd consider as valid, like unused with lib; for example. (Specifically, I'd draw the line at "an unused with is fine if it's scoped only to an empty list") |
Just found another PR where the linter was a bit on the annoying side https://github.com/NixOS/nixpkgs/pull/331017/files#diff-d6928320a2c1b49a1351902a0e9683ed7f05d63fe6cdef002e4c8d365d322c13R7-R11 |
nixf-tidy
complaints now about empty maintainers set.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.