Skip to content

Regression: stackoverflow on nix 2.20 and 2.21 when running poetry2nix with a projectDir from a flake input #10496

Open
@Atry

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

  1. Install Nix 2.20 or later version
  2. 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

Priorities

Add 👍 to issues you find important.

Metadata

Assignees

Labels

bugregressionSomething doesn't work anymore

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions