-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
lib/types: init {types.attrsWith} #354738
Conversation
327fe92
to
c4a9529
Compare
Co-Authored-By: @hsjobeki
4973006
to
3b2f920
Compare
Co-Authored-By: @infinisil
3b2f920
to
45f0035
Compare
@infinisil Depraction message works now. With/without type merging. |
Co-Authored-By: Johannes Kirschbauer <[email protected]>
dd5e03e
to
d5eccbb
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.
Looked at this together in a meeting with @hsjobeki, looking good, let's deal with any issues if they come up!
this change seems like it broke one of the ofborg eval tests.
https://gist.github.com/GrahamcOfBorg/7d1ce79b712e477612915ee9247188c8 |
So do we revert this or does anyone have a quick fix? |
Reverted. |
We will add lib-tests soon to github ci. |
@infinisil @K900 Please just remove the failing test line. It was only there for testing the "nice" deprecation message. But it seems the test framework cannot handle that yet. I would need to first fix the test framework. Which is a bit more work. I am not sure what the convention is for reverting a revert but i opened up this one: |
The convention is to revert the revert and than potentially fix the issue. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/use-cases-of-option-type-internals/57317/1 |
types.attrsWith
combinesattrsOf
andlazyAttrsOf
with a configurablelazy = true/false
parameter.Other parameters are possible and on hold see: #344216
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.