1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

getBuildLog: factor out resolving derivations

This commit is contained in:
Taeer Bar-Yam 2022-12-15 15:58:54 -05:00
parent 3b27181ee5
commit e5eb05c599
7 changed files with 16 additions and 19 deletions

View file

@ -87,13 +87,8 @@ void LocalFSStore::narFromPath(const StorePath & path, Sink & sink)
const std::string LocalFSStore::drvsLogDir = "drvs";
std::optional<std::string> LocalFSStore::getBuildLog(const StorePath & path_)
std::optional<std::string> LocalFSStore::getBuildLogExact(const StorePath & path)
{
auto maybePath = getBuildDerivationPath(path_);
if (!maybePath)
return std::nullopt;
auto path = maybePath.value();
auto baseName = path.to_string();
for (int j = 0; j < 2; j++) {