diff options
author | Graham Christensen <graham@grahamc.com> | 2020-10-31 19:26:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 19:26:26 -0400 |
commit | 035d0adfd8a4a20dd404cb5586cfd5414ac28b77 (patch) | |
tree | e974e1216c87c46a4a19b9823a1deec1ccf093dc /src/libstore | |
parent | dc5696b84f55a6706cddc3d747ef1aeffb564f43 (diff) | |
parent | e8a45d07bccc315de88b8434393082eee6e944a8 (diff) |
Merge pull request #4209 from hercules-ci/fix-restricted-store-addToStoreFromDump
Restore RestrictedStore.addToStoreFromDump implementation
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build/derivation-goal.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index 3dacb218c..19d96dd8f 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -2074,6 +2074,14 @@ struct RestrictedStore : public LocalFSStore, public virtual RestrictedStoreConf return path; } + StorePath addToStoreFromDump(Source & dump, const string & name, + FileIngestionMethod method = FileIngestionMethod::Recursive, HashType hashAlgo = htSHA256, RepairFlag repair = NoRepair) override + { + auto path = next->addToStoreFromDump(dump, name, method, hashAlgo, repair); + goal.addDependency(path); + return path; + } + void narFromPath(const StorePath & path, Sink & sink) override { if (!goal.isAllowed(path)) |