-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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/nixos: remove with lib;
part 9
#361257
base: master
Are you sure you want to change the base?
treewide/nixos: remove with lib;
part 9
#361257
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.
I assume the unrelated changes happened after a rebase, maybe it's better start on a clean base and rerun your script to recreate the commits when you get a merge conflict?
de42f45
to
ffcb2f0
Compare
ffcb2f0
to
27de3e3
Compare
listenAddresses = mkOption { | ||
type = with types; coercedTo str singleton (listOf str); | ||
listenAddresses = lib.mkOption { | ||
type = with lib.types; coercedTo str lib.singleton (listOf str); |
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.
lib.singleton
was added by hand
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.
singleton
was there before, so the only change is adding lib.
else generators.mkValueStringDefault {} v; | ||
else lib.generators.mkValueStringDefault {} v; | ||
mkKeyValueTinyproxy = { | ||
mkValueString ? mkValueStringDefault {} | ||
mkValueString ? lib.generators.mkValueStringDefault {} |
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.
these lines were manually changed
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.
Thanks for fixing the eval error
27de3e3
to
9372db5
Compare
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.
I looked through all the diff and didn't find any false positives, LGTM!
For double checking I ran a script that filters out the lib
(and whitespace) changes, this was the only result:
diff --git a/nixos/modules/services/networking/tinyproxy.nix b/nixos/modules/services/networking/tinyproxy.nix
index 6e07c6a541e9..dd827d7f55f5 100644
--- a/nixos/modules/services/networking/tinyproxy.nix
+++ b/nixos/modules/services/networking/tinyproxy.nix
@@ -1,16 +1,13 @@
- mkValueString ? mkValueStringDefault {}
+ mkValueString ? lib.generators.mkValueStringDefault {}
part of #208242 |
20aadf8
to
12cb5fe
Compare
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.
Changes since last force push look good, thanks!
Description of changes
part of #208242
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.