nix icon indicating copy to clipboard operation
nix copied to clipboard

flakes: failing follows test case

Open edrex opened this issue 3 years ago • 3 comments

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.

edrex avatar Feb 26 '22 23:02 edrex

cc @balsoft

edrex avatar Feb 26 '22 23:02 edrex

Context: found when attempting to use https://github.com/srid/emanote/blob/master/flake.nix as an input. @srid

edrex avatar Feb 26 '22 23:02 edrex

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

edrex avatar Feb 27 '22 00:02 edrex