mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
nix flake {metadata,archive}: Fix chroot stores
Fixes
$ nix flake metadata --store /tmp/nix nixpkgs
error: path '/tmp/nix/nix/store/65xpqkz92d9j7k5ric4z8lzhiigxsfbg-source/flake.nix' is not in the Nix store
This has been broken since 598deb2b23
.
This commit is contained in:
parent
4c7a6ffee7
commit
c5a4dfa660
4 changed files with 31 additions and 13 deletions
|
@ -184,6 +184,9 @@ nix registry list | grepInverse '^user' # nothing in user registry
|
|||
nix flake metadata flake1
|
||||
nix flake metadata flake1 | grepQuiet 'Locked URL:.*flake1.*'
|
||||
|
||||
# Test 'nix flake metadata' on a chroot store.
|
||||
nix flake metadata --store $TEST_ROOT/chroot-store flake1
|
||||
|
||||
# Test 'nix flake metadata' on a local flake.
|
||||
(cd "$flake1Dir" && nix flake metadata) | grepQuiet 'URL:.*flake1.*'
|
||||
(cd "$flake1Dir" && nix flake metadata .) | grepQuiet 'URL:.*flake1.*'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue