mirror of
https://github.com/NixOS/nix
synced 2025-07-08 19:23:54 +02:00
Paths added to lower store are accessible via overlay.
This commit is contained in:
parent
f66b65a30a
commit
a33ee5c843
5 changed files with 51 additions and 4 deletions
|
@ -7,7 +7,7 @@ set -x
|
|||
source common.sh
|
||||
|
||||
# Avoid store dir being inside sandbox build-dir
|
||||
unset NIX_STORE_DIR
|
||||
unset NIX_STORE_DIR # TODO: This causes toRealPath to fail (it expects this var to be set)
|
||||
unset NIX_STATE_DIR
|
||||
|
||||
storeDirs
|
||||
|
@ -27,4 +27,5 @@ path=$(nix-store --store "$storeB" --add ../dummy)
|
|||
stat $(toRealPath "$storeA/nix/store" "$path")
|
||||
|
||||
# upper layer should still not have it (no redundant copy)
|
||||
expect 1 stat $(toRealPath "$storeB/nix/store" "$path")
|
||||
expect 1 stat $(toRealPath "$storeB/nix/store" "$path") # TODO: Check this is failing for the right reason.
|
||||
# $storeB is a store URI not a directory path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue