diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-11-09 15:57:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 15:57:39 +0100 |
commit | 67179472dfe30c97af9a5aeed0190c0e765936cf (patch) | |
tree | 8062dace9a6fec19a6095a13fc844ff8601313e4 /src/libstore/store-api.cc | |
parent | 884ef336c4bf838d853056d8abb926a71786afa6 (diff) | |
parent | 0b005bc9d67b3f621bc78e5ecb2cd834172d5563 (diff) |
Merge pull request #5494 from tweag/balsoft/allow-references-in-addPath
Allow references in addPath
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index b0d3688ce..ba13026f3 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -237,7 +237,7 @@ StorePath Store::computeStorePathForText(const string & name, const string & s, StorePath Store::addToStore(const string & name, const Path & _srcPath, - FileIngestionMethod method, HashType hashAlgo, PathFilter & filter, RepairFlag repair) + FileIngestionMethod method, HashType hashAlgo, PathFilter & filter, RepairFlag repair, const StorePathSet & references) { Path srcPath(absPath(_srcPath)); auto source = sinkToSource([&](Sink & sink) { @@ -246,7 +246,7 @@ StorePath Store::addToStore(const string & name, const Path & _srcPath, else readFile(srcPath, sink); }); - return addToStoreFromDump(*source, name, method, hashAlgo, repair); + return addToStoreFromDump(*source, name, method, hashAlgo, repair, references); } |