Open
Description
Describe the bug
When running poetry2nix with a projectDir from a flake input, a stack overflow error is raised by nix 2.20 and 2.21, while nix 2.18 and 2.19 would not raise such an error.
Steps To Reproduce
- Install Nix 2.20 or later version
- Run
nix build github:Atry/nix-2.20-crash
Now it failed to build with the following error message
[0.0 MiB DL] copying '/nix/store/0fvd8z4l32snmj9jmr3zky1aadmia0wr-source' to the storeerror: stack overflow (possible infinite recursion)
Expected behavior
Don't stack overflow
nix-env --version
output
nix-env (Nix) 2.21.0
Additional context
- See https://github.com/Atry/nix-2.20-crash/blob/main/flake.nix for the source code to reproduce this bug
- No error on nix 2.18 and nix 2.19
Priorities
Add 👍 to issues you find important.