aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/binary-cache-store.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/binary-cache-store.hh')
-rw-r--r--src/libstore/binary-cache-store.hh36
1 files changed, 6 insertions, 30 deletions
diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh
index 6bc83fc50..c77292294 100644
--- a/src/libstore/binary-cache-store.hh
+++ b/src/libstore/binary-cache-store.hh
@@ -17,6 +17,7 @@ public:
const Setting<std::string> compression{this, "xz", "compression", "NAR compression method ('xz', 'bzip2', or 'none')"};
const Setting<bool> writeNARListing{this, false, "write-nar-listing", "whether to write a JSON file listing the files in each NAR"};
+ const Setting<bool> writeDebugInfo{this, false, "index-debug-info", "whether to index DWARF debug info files by build ID"};
const Setting<Path> secretKeyFile{this, "", "secret-key", "path to secret key used to sign the binary cache"};
const Setting<Path> localNarCache{this, "", "local-nar-cache", "path to a local cache of NARs"};
const Setting<bool> parallelCompression{this, false, "parallel-compression",
@@ -47,7 +48,7 @@ public:
/* Fetch the specified file and call the specified callback with
the result. A subclass may implement this asynchronously. */
virtual void getFile(const std::string & path,
- Callback<std::shared_ptr<std::string>> callback);
+ Callback<std::shared_ptr<std::string>> callback) noexcept;
std::shared_ptr<std::string> getFile(const std::string & path);
@@ -72,24 +73,11 @@ public:
bool isValidPathUncached(const Path & path) override;
- PathSet queryAllValidPaths() override
- { unsupported(); }
-
void queryPathInfoUncached(const Path & path,
- Callback<std::shared_ptr<ValidPathInfo>> callback) override;
-
- void queryReferrers(const Path & path,
- PathSet & referrers) override
- { unsupported(); }
-
- PathSet queryDerivationOutputs(const Path & path) override
- { unsupported(); }
-
- StringSet queryDerivationOutputNames(const Path & path) override
- { unsupported(); }
+ Callback<std::shared_ptr<ValidPathInfo>> callback) noexcept override;
Path queryPathFromHashPart(const string & hashPart) override
- { unsupported(); }
+ { unsupported("queryPathFromHashPart"); }
bool wantMassQuery() override { return wantMassQuery_; }
@@ -108,22 +96,10 @@ public:
BuildResult buildDerivation(const Path & drvPath, const BasicDerivation & drv,
BuildMode buildMode) override
- { unsupported(); }
+ { unsupported("buildDerivation"); }
void ensurePath(const Path & path) override
- { unsupported(); }
-
- void addTempRoot(const Path & path) override
- { unsupported(); }
-
- void addIndirectRoot(const Path & path) override
- { unsupported(); }
-
- Roots findRoots() override
- { unsupported(); }
-
- void collectGarbage(const GCOptions & options, GCResults & results) override
- { unsupported(); }
+ { unsupported("ensurePath"); }
ref<FSAccessor> getFSAccessor() override;