-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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: get rid of with lib;
and friends
#209325
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2fba0f9
nixos/maintainers/scripts/cloudstack/cloudstack-image.nix: get rid of…
AndersonTorres 2f6eec7
nixos/maintainers/scripts/lxd/lxd-image-inner.nix: get rid of `with l…
AndersonTorres af67520
nixos/maintainers/scripts/lxd/lxd-image.nix: get rid of `with lib;`
AndersonTorres 8cce368
nixos/maintainers/scripts/lxd/nix.tpl: get rid of `with lib;`
AndersonTorres 3101346
nixos/modules/testing/test-instrumentation.nix: get rid of `with lib;`
AndersonTorres 76adca5
nixos/tests/hardened.nix: get rid of `with lib;`
AndersonTorres adadeea
nixos/tests/nfs/kerberos.nix: get rid of `with lib;`
AndersonTorres File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
|
||
{ config, pkgs, lib, ... }: | ||
|
||
with lib; | ||
|
||
{ | ||
imports = | ||
[ # Include the default lxd configuration. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ lib, config, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
{ | ||
imports = [ | ||
../../../modules/virtualisation/lxc-container.nix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import ../make-test-python.nix ({ pkgs, lib, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
krb5 = | ||
{ enable = true; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Would be nice to have a PR with only those removals, since this one can be merged really fast.
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 am not following.
My idea is that each commit should be buildable. If I merely remove the
with lib
and merge, obviously it will generate errors like "mkDefault not defined".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.
What do you mean? That this commit is broken them? Because it is clear that a few files only remove
with lib;
and do nothing else.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 am talking about only about the files that remove
with lib;
and do nothing else BTW.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.
Good idea.
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.
Yes, same idea from me. If we can remove a
with
anywhere without having regressions we can immediately merge it. This can also be done treewide to make mistakes in commits unlikely.This change is uncontroversial for me