-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
nix-build ignores attributes with a period {"a.b" = drv} #3088
Comments
Actually this does look like a bug! |
When the key is quoted, it should be the name of the key.
|
If that were the case, I'd expect this to work, but it doesn't:
To be clear, I don't want this example to work. It would mess up the meaning of attribute sets. |
Here is another example that doesn't work as expected:
|
This behaviour is intended: b0cb117 |
@edolstra is the goal to make those disallowed on the language level as well on the longer term? |
@zimbatm No. But generally it's a good idea to avoid them. |
@edolstra This is applying Postel's law (be conservative in what you do, be liberal in what you accept from others) to the Nixpkgs+ I would like As an alternative to the filtering in |
@edolstra if I understand it correctly, your goal was to avoid contributors from adding those attributes to nixpkgs? I find it surprising that those attributes get filtered out on the nix level. It adds another hidden behaviour that is only discovered after looking into the nix source code, or after finding this issue. |
I marked this as stale due to inactivity. → More info |
I still believe Nix can do better than this. We ought to fix root causes, not introduce more problems by adding unnecessary restrictions. |
I completely forgot about this issue and got bitten by it again last week |
I marked this as stale due to inactivity. → More info |
Ran into this today when an attribute path containing a If the Nix language permits attributes to be named with these characters, the tooling should work with those attributes. |
To reproduce:
The text was updated successfully, but these errors were encountered: