-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
check-meta.nix: Add package warnings #177272
base: master
Are you sure you want to change the base?
Conversation
b6095f2
to
62a0b0c
Compare
This comment was marked as resolved.
This comment was marked as resolved.
pkgs/top-level/config.nix
Outdated
warnings = mkOption { | ||
type = types.listOf types.str; | ||
default = []; | ||
internal = true; | ||
}; | ||
assertions = mkOption { | ||
type = types.listOf types.unspecified; |
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.
Don't use types.unspecified
, also because it has poor merge semantics. types.raw
or types.anything
instead. Or better: Specify the full type
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 is simply copied out of the NixOS module and is only temporary, the full type should be specified in #207187 (comment)
6eea435
to
274a0da
Compare
274a0da
to
5a2ca57
Compare
5a2ca57
to
5c562b2
Compare
778deed
to
52df9a6
Compare
52df9a6
to
08d0536
Compare
@piegamesde thank you so much for leading this effort! Are there any blockers preventing further progress on this PR? I've been doing a somewhat ad-hoc version of this to allow for easier diagnoses of build failures, like so: nixpkgs/pkgs/development/python-modules/torch/default.nix Lines 118 to 124 in 49cd2f2
I would love to see this merged -- let me know if there's any way I can help! |
Me and @piegamesde sat together at NixCon to discuss this, but my conclusion there was that |
@ConnorBaker This code does a minimal implementation, which I have hopes of getting merged eventually. The current bigger task to do here is QA, especially writing unit tests for the different conditions. That's why I factored out the business logic into its own file, as Infinisil requested back then. Feel free to take on that task, I won't be working on it for a bit probably. Apart from that this change has been heavily review-stalled for a lot of time, so simply watching here and giving review as necessary would be a big help too |
It seems like I'm unintentionally blocking this from progressing. I'm just taking another look, and unless I'm just missing it, the PR changes itself really aren't bad. What I think needs to be done before merging:
I'd also really like for somebody to think about how we could clean up Unfortunately I'm pretty spread out with my availability, so I don't have time to do this myself, I'll dismiss my review and don't intend to interfere with this anymore. |
I was asked by @AkechiShiro to help a bit with how to write tests for this, so here's some proof of concept for how it could work: tweag@9b55daf |
Hello all, Here are the tests cases, I've though of so far, this matrix needs to be made 3 times to cover for each handlers ( So far, I have almost full coverage on the
Note Case 12 : is each of the problems alone on their own Thanks a lot for your help for establishing the ground work for the tests @infinisil |
The new PR is ready for review, thanks to all involved |
Implements RFC 127 NixOS/rfcs#127
Description of changes
See the RFC
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes