mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Improve documentation and test and requested
This commit is contained in:
parent
7af743470c
commit
8c07ed1dda
2 changed files with 7 additions and 4 deletions
|
@ -372,9 +372,9 @@ public:
|
||||||
void queryPathInfo(const StorePath & path,
|
void queryPathInfo(const StorePath & path,
|
||||||
Callback<ref<const ValidPathInfo>> callback) noexcept;
|
Callback<ref<const ValidPathInfo>> callback) noexcept;
|
||||||
|
|
||||||
/* Check whether the given valid path info is sufficiently well-formed
|
/* Check whether the given valid path info is sufficiently attested, by
|
||||||
(e.g. hash content-address or signature) in order to be included in the
|
either being signed by a trusted public key or content-addressed, in
|
||||||
given store.
|
order to be included in the given store.
|
||||||
|
|
||||||
These same checks would be performed in addToStore, but this allows an
|
These same checks would be performed in addToStore, but this allows an
|
||||||
earlier failure in the case where dependencies need to be added too, but
|
earlier failure in the case where dependencies need to be added too, but
|
||||||
|
|
|
@ -7,7 +7,10 @@ clearCacheCache
|
||||||
(! nix-build --store "file://$cacheDir" dependencies.nix)
|
(! nix-build --store "file://$cacheDir" dependencies.nix)
|
||||||
|
|
||||||
# Succeeds with default store as build remote.
|
# Succeeds with default store as build remote.
|
||||||
nix-build --store "file://$cacheDir" --builders 'auto - - 1 1' -j0 dependencies.nix
|
outPath=$(nix-build --store "file://$cacheDir" --builders 'auto - - 1 1' -j0 dependencies.nix)
|
||||||
|
|
||||||
|
# Test that the path exactly exists in the destination store.
|
||||||
|
nix path-info --store "file://$cacheDir" $outPath
|
||||||
|
|
||||||
# Succeeds without any build capability because no-op
|
# Succeeds without any build capability because no-op
|
||||||
nix-build --store "file://$cacheDir" -j0 dependencies.nix
|
nix-build --store "file://$cacheDir" -j0 dependencies.nix
|
||||||
|
|
Loading…
Reference in a new issue