mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Merge pull request #13026 from roberth/issue-13018
Fix issue #13018, `sourceInfo` strict in `outputs`
This commit is contained in:
commit
99a16c5203
2 changed files with 43 additions and 9 deletions
|
@ -108,3 +108,24 @@ EOF
|
|||
[[ $(nix eval "$rootFlake#z") = 90 ]]
|
||||
|
||||
fi
|
||||
|
||||
# https://github.com/NixOS/nix/pull/10089#discussion_r2041984987
|
||||
# https://github.com/NixOS/nix/issues/13018
|
||||
mkdir -p "$TEST_ROOT/issue-13018/example"
|
||||
(
|
||||
cd "$TEST_ROOT/issue-13018"
|
||||
git init
|
||||
echo '{ outputs = _: { }; }' >flake.nix
|
||||
cat >example/flake.nix <<EOF
|
||||
{
|
||||
inputs.parent.url = ../.;
|
||||
outputs = { parent, ... }: builtins.seq parent { ok = null; };
|
||||
}
|
||||
EOF
|
||||
git add -N .
|
||||
cd example
|
||||
# Important: the error does not trigger for an in-memory lock!
|
||||
nix flake lock
|
||||
# would fail:
|
||||
nix eval .#ok
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue