-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
File ratchet checks #144
File ratchet checks #144
Conversation
22603ba
to
00815fa
Compare
For a future change we need a version that gives access to the Success value from both arguments.
00815fa
to
30686e7
Compare
After very minor changes and adding code comments, I think this PR is ready. While it doesn't introduce any functionality by itself, it's going to be very useful to have this for #142 and similar features. In particular #135 could also be based on this.
nixpkgs-vet/.github/workflows/main.yml Lines 50 to 51 in 93a073d
|
A future commit introduces checks on all Nix files, but this is problematic if the base Nixpkgs version is part of the main Nixpkgs version
30686e7
to
6b52b12
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.
No blocking comments, just a few clarifying questions. Thanks for your patience in waiting for a review.
// Noop for now, only boilerplate to make it easier to add future file-based checks | ||
Ok(Success(ratchet::File {})) |
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.
Or is this the place that #142 will go?
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 where the logic goes yes :)
For now without any checks, but this makes introducing ones fairly easy
6b52b12
to
11fb3da
Compare
This introduces the boilerplate to support ratchet (and non-ratchet) checks for all Nix files in Nixpkgs, which can be used as a basis for #142
This includes #143
Needs some code comments probably before ready for mergingAdded
This work is funded by Tweag and Antithesis ✨