Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

File ratchet checks #144

wants to merge 3 commits into from

Conversation

infinisil
Copy link
Member

@infinisil infinisil commented Jan 8, 2025

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 merging
Added


This work is funded by Tweag and Antithesis

For a future change we need a version that gives access to the Success value from both arguments.
@infinisil infinisil marked this pull request as ready for review January 14, 2025 21:04
@infinisil
Copy link
Member Author

infinisil commented Jan 14, 2025

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.

The CI failure is unrelated, fixed by #146
Nevermind, I just can't read error messages, the problem was that

--ignore tests/symlink-invalid/pkgs/by-name/fo/foo/foo
--ignore tests/multiple-failures/pkgs/by-name/A/fo@/foo
needed to be updated after 712d97c 😆

@infinisil infinisil requested a review from a team January 14, 2025 21:17
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
For now without any checks, but this makes introducing ones fairly easy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant