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

Move the getBuildLog implementation to its own implementation file

Keep the header minimal and clean
This commit is contained in:
Théophane Hufschmitt 2023-01-13 11:05:19 +01:00
parent bdeb6de889
commit b8a0e9a9b8
2 changed files with 13 additions and 6 deletions

12
src/libstore/log-store.cc Normal file
View file

@ -0,0 +1,12 @@
#include "log-store.hh"
namespace nix {
std::optional<std::string> LogStore::getBuildLog(const StorePath & path) {
auto maybePath = getBuildDerivationPath(path);
if (!maybePath)
return std::nullopt;
return getBuildLogExact(maybePath.value());
}
}