aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/binary-cache-store.cc
diff options
context:
space:
mode:
authorTaeer Bar-Yam <taeer.bar-yam@tweag.io>2022-12-15 15:58:54 -0500
committerTaeer Bar-Yam <taeer.bar-yam@tweag.io>2022-12-15 15:58:54 -0500
commite5eb05c5990d837e0bbc1529e3b5b167f7015be0 (patch)
tree13207eadab614619b336fb9079ec0086f62d102e /src/libstore/binary-cache-store.cc
parent3b27181ee54176aba2cdff98028586048e08e74d (diff)
getBuildLog: factor out resolving derivations
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r--src/libstore/binary-cache-store.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc
index 14584f0a2..0fef2d23a 100644
--- a/src/libstore/binary-cache-store.cc
+++ b/src/libstore/binary-cache-store.cc
@@ -502,14 +502,9 @@ void BinaryCacheStore::addSignatures(const StorePath & storePath, const StringSe
writeNarInfo(narInfo);
}
-std::optional<std::string> BinaryCacheStore::getBuildLog(const StorePath & path)
+std::optional<std::string> BinaryCacheStore::getBuildLogExact(const StorePath & path)
{
- auto maybePath = getBuildDerivationPath(path);
- if (!maybePath)
- return std::nullopt;
- auto drvPath = maybePath.value();
-
- auto logPath = "log/" + std::string(baseNameOf(printStorePath(drvPath)));
+ auto logPath = "log/" + std::string(baseNameOf(printStorePath(path)));
debug("fetching build log from binary cache '%s/%s'", getUri(), logPath);