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:
parent
3b27181ee5
commit
e5eb05c599
7 changed files with 16 additions and 19 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue