-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
nixpkgs-vet should throw error when package attribute name in by-name is prefixed with a number #107
Comments
I see that this does actually work through both
Is the core reason it should be discouraged that a package like this can't be expressed as a dependency in
|
...Yes, in other situations we just need quotes. |
Oh this would be nice, and should be simple to implement |
I'll refrain from implementing this, I think this is a great first issue for perhaps a new contributor |
https://github.com/NixOS/nixpkgs-vet/blob/main/src/structure.rs#L16-L19 The correct regex would be: shard: |
Feel free to assign me. I'll get started now. As this will be the first time navigating the code base, any onboarding info would be handy (Structure of code, which parts are most relevant to this, etc). |
Done! Please feel free to open a draft PR as a WIP rather than polishing until "done" -- rough drafts are just fine in these parts. 🙂
|
@Ben-PH also consider joining us on matrix https://matrix.to/#/#nixpkgs-architecture:nixos.org ! The room hasn't been too active lately, but I'm going to have more time the next couple months so who knows :) Also, here is some past context of Nixpkgs Architecture Team https://discourse.nixos.org/t/nixpkgs-architecture-team-conclusion-and-prospective/41020/1 |
In NixOS/nixpkgs#333281 the package attribute name is prefixed with 1 but nixpkgs-vet agreed with that. This may cause problems for us later, as nix treats
"1a"
,1a
and_1a
differently. I edited the title to rerun the check and confirmed that it still didn't throw an error.The text was updated successfully, but these errors were encountered: