Skip to content

Commit 521667e

Browse files
committed
Fix follow-paths test
Since ff8e2fe, 'path:' URLs on the CLI are interpreted as relative to the current directory of the user, not the path of the flake we're overriding.
1 parent 550fe88 commit 521667e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/functional/flakes/follow-paths.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,6 @@ json=$(nix flake metadata "$flakeFollowsCustomUrlA" --json)
356356
rm "$flakeFollowsCustomUrlA"/flake.lock
357357

358358
# if override-input is specified, lock "original" entry should contain original url
359-
json=$(nix flake metadata "$flakeFollowsCustomUrlA" --override-input B/C "path:./flakeB/flakeD" --json)
359+
json=$(nix flake metadata "$flakeFollowsCustomUrlA" --override-input B/C "$flakeFollowsCustomUrlD" --json)
360360
echo "$json" | jq .locks.nodes.C.original
361361
[[ $(echo "$json" | jq -r .locks.nodes.C.original.path) = './flakeC' ]]

0 commit comments

Comments
 (0)