mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 05:51:05 +01:00
nix sign-paths: Support binary caches
This commit is contained in:
parent
d6dbda7004
commit
ec5b04862b
3 changed files with 43 additions and 15 deletions
|
|
@ -60,3 +60,9 @@ info=$(nix path-info --store file://$cacheDir --json $outPath2)
|
|||
(! [[ $info =~ '"ultimate":true' ]])
|
||||
[[ $info =~ 'cache1.example.org' ]]
|
||||
(! [[ $info =~ 'cache2.example.org' ]])
|
||||
|
||||
# Verify that adding a signature to a path in a binary cache works.
|
||||
nix sign-paths --store file://$cacheDir --key-file $TEST_ROOT/sk2 $outPath2
|
||||
info=$(nix path-info --store file://$cacheDir --json $outPath2)
|
||||
[[ $info =~ 'cache1.example.org' ]]
|
||||
[[ $info =~ 'cache2.example.org' ]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue