mirror of
https://github.com/NixOS/nix
synced 2025-07-07 18:31:49 +02:00
Test NAR info caching
This commit is contained in:
parent
05420e7883
commit
c642441beb
2 changed files with 15 additions and 5 deletions
|
@ -5,7 +5,7 @@ clearManifests
|
|||
|
||||
# Create the binary cache.
|
||||
cacheDir=$TEST_ROOT/binary-cache
|
||||
rm -rf $cacheDir
|
||||
rm -rf "$cacheDir"
|
||||
|
||||
outPath=$(nix-build dependencies.nix --no-out-link)
|
||||
|
||||
|
@ -17,6 +17,8 @@ nix-push --dest $cacheDir $outPath
|
|||
clearStore
|
||||
rm -f $NIX_STATE_DIR/binary-cache*
|
||||
|
||||
export _NIX_CACHE_FILE_URLS=1
|
||||
|
||||
nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* | grep -- "---"
|
||||
|
||||
nix-store --option binary-caches "file://$cacheDir" -r $outPath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue