module system: No shorthand imports syntax in submodules #70638
Labels
0.kind: bug
Something is broken
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
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: