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

In checkOverlay, accept underscored names for final/prev args. #5477

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

league
Copy link
Contributor

@league league commented Nov 3, 2021

I wonder if this would be an acceptable quick fix for a pain point I and some others have with flake check. I'd like to be able to run nix-linter within checks, via pre-commit-hooks. But nix-linter and flake check disagree with each other: the linter forbids unused arguments unless they are ‘unnamed’ (_) or prefixed with _, but check requires exactly the names final and prev for overlay arguments, even if they are unused.

This just adds the capability to use _final/_prev in addition to final/prev, respectively.

Resolves #4416, see also #5146.

@Sahabee
Copy link

Sahabee commented Nov 3, 2021

🤗

@edolstra edolstra merged commit ae14113 into NixOS:master Nov 3, 2021
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.

nix flake check: allow _ as arguments to overlays
3 participants