-
-
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-env -qP
does not quote attributes that need to be quoted
#1342
Comments
Attribute names should not contain dots. This is a bug in Nixpkgs, which should not use |
Does that mean the sysctl NixOS module is also flawed?
… On Apr 19, 2017, at 08:04, Eelco Dolstra ***@***.***> wrote:
Attribute names should not contain dots. This is a bug in Nixpkgs, which should not use hu.dwim.asf as an attribute name.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If attribute names should not contain dots, what is the rationale for the attribute name quoting syntax in Nix (that also doesn't warn about wrong names)? Is it a bug that converting list to attribute set doesn't complain on wrong names? I always thought it was added exactly to support sane attribute naming of packages with upstream names starting with a digit. |
nix-env -qP
doesn't quote components of attribute paths that need to be quoted.For example, the attribute
lispPackages."hu.dwim.asdf"
is output aslispPackages.hu.dwim.asdf
. Trying to use the output directly results in the error:This breaks tools that consume
nix-env
output (nox-review
, for example, dies if the change requires a rebuild oflispPackages."hu.dwim.asdf"
)The text was updated successfully, but these errors were encountered: