mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
downloadFile(): Use expired file if the download fails
This commit is contained in:
parent
f6ddf48882
commit
1c127e6a82
2 changed files with 19 additions and 6 deletions
|
@ -268,10 +268,9 @@ nix build -o $TEST_ROOT/result $flake3Dir#sth 2>&1 | grep 'unsupported edition'
|
|||
|
||||
# Test whether registry caching works.
|
||||
nix flake list --flake-registry file://$registry | grep -q flake3
|
||||
# FIXME
|
||||
#mv $registry $registry.tmp
|
||||
#nix flake list --flake-registry file://$registry --refresh | grep -q flake3
|
||||
#mv $registry.tmp $registry
|
||||
mv $registry $registry.tmp
|
||||
nix flake list --flake-registry file://$registry --refresh | grep -q flake3
|
||||
mv $registry.tmp $registry
|
||||
|
||||
# Test whether flakes are registered as GC roots for offline use.
|
||||
# FIXME: use tarballs rather than git.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue