aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 892ff2295..010e52019 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -1022,9 +1022,9 @@ StorePathSet LocalStore::queryValidDerivers(const StorePath & path)
std::map<std::string, std::optional<StorePath>>
-LocalStore::queryPartialDerivationOutputMap(const StorePath & path)
+LocalStore::queryStaticPartialDerivationOutputMap(const StorePath & path)
{
- auto outputs = retrySQLite<std::map<std::string, std::optional<StorePath>>>([&]() {
+ return retrySQLite<std::map<std::string, std::optional<StorePath>>>([&]() {
auto state(_state.lock());
std::map<std::string, std::optional<StorePath>> outputs;
uint64_t drvId;
@@ -1036,21 +1036,6 @@ LocalStore::queryPartialDerivationOutputMap(const StorePath & path)
return outputs;
});
-
- if (!experimentalFeatureSettings.isEnabled(Xp::CaDerivations))
- return outputs;
-
- auto drv = readInvalidDerivation(path);
- auto drvHashes = staticOutputHashes(*this, drv);
- for (auto& [outputName, hash] : drvHashes) {
- auto realisation = queryRealisation(DrvOutput{hash, outputName});
- if (realisation)
- outputs.insert_or_assign(outputName, realisation->outPath);
- else
- outputs.insert({outputName, std::nullopt});
- }
-
- return outputs;
}
std::optional<StorePath> LocalStore::queryPathFromHashPart(const std::string & hashPart)