-
Notifications
You must be signed in to change notification settings - Fork 426
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
imports
in devenv.yaml is ignored after upgrade to V1.6 installed from nixpkgs, if .devenv*
is present in .gitignore
.
To reproduce
Example from this repo is a reproducer: https://github.com/cachix/devenv/tree/main/examples/imports. Running devenv shell ./.test.sh
in that folder results in a non-0 exit status.
I'm new to nix and devenv, so I may be completely off, but I tried to investigate, and:
- In
.devenv.flake.nix
, thebuiltins.pathExists (devenv_dotfile + "/devenv.json")
is false, causingdevenv
to be{ }
. No modules are then imported when callingmap importModule (devenv.imports or [ ])
- This seems to be caused by the removal of this line: https://github.com/domenkozar/nix/pull/5/files#diff-1cf3d4aeb3f1a65a47ae618b0f9f7328c9ebf648f915c15257b1ef103970c9b4L300
- Further confirmation is that
imports
work as expected if.devenv
folder is not.gitignore
-d
Version
devenv 1.6.0 (x86_64-linux)
PS: Sorry if this is not the right place to report this issue, however, issues are disabled in https://github.com/domenkozar/nix.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working