You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be equivalent to, but doesn't work when specified as
{
x.y.imports = [ ./someFile.nix ];
}
To Reproduce
This uses Arion as an example and to provide some context as to why one might want this:
$ git clone https://github.com/hercules-ci/arion; cd arion
$ git checkout for-nixpkgs-lib-imports-issue
$ cd examples/minimal
$ NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz ../../run-arion-via-nix cat --show-trace
[...]
The option `services.webserver.imports' defined in `/nix/store/sf3j91p62aznv9iy102sa0838qgjg61n-arion-0.1.0.0-data/share/ghc-8.6.4/x86_64-linux-ghc-8.6.4/arion-compose-0.1.0.0/nix/modules/composition/docker-compose.nix' does not exist.
Expected behavior
The simplification just works.
Metadata
Please run nix run nixpkgs.nix-info -c nix-info -m and paste the result.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Search for maintainers and people that previously touched the related code and @ mention them in a comment.
Describe the bug
When importing into a submodule, imports are not recognized unless the submodule is specified as a function. Also the error message is not helpful.
Normally the syntaxes for modules are interchangable. In particular:
is equivalent to
This does not work for submodules.
should be equivalent to, but doesn't work when specified as
To Reproduce
This uses Arion as an example and to provide some context as to why one might want this:
Expected behavior
The simplification just works.
Metadata
Please run
nix run nixpkgs.nix-info -c nix-info -m
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: