nix
nix copied to clipboard
flakes: failing follows test case
this is a bug report in the form of a failing test case
A has input B, B has input foobar, and
- B:
inputs.D.follows = "foobar/D" - A:
inputs.B.inputs.foobar.follows= "foobar"
Result:
error: input 'B/D' follows a non-existent input 'B/foobar/D'
Expected: ['foobar', 'D']
Tested with v2.6.1 with #6036 cherry-picked, since master is giving me a SIGBUS right now.
cc @balsoft
Context: found when attempting to use https://github.com/srid/emanote/blob/master/flake.nix as an input. @srid
I made a small change to the existing test case to trigger the failure, but it seems like factoring out the flake follows tests to be more explicit should make it easier to reason about expected behavior.
Very similar to https://github.com/NixOS/nix/issues/6013 but not quite the same.
Maybe a common cause with https://github.com/NixOS/nix/issues/5790