From 47a74fed83c4ea0985b50ee45bd8fe722c3c18f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 20 Sep 2022 20:12:55 +0200 Subject: [PATCH] also accept relative gc root directories --- src/nix-eval-jobs.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index a8d56ab..e20ed5c 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -535,8 +536,11 @@ int main(int argc, char **argv) { if (myArgs.releaseExpr == "") throw UsageError("no expression specified"); - if (myArgs.gcRootsDir == "") + if (myArgs.gcRootsDir == "") { printMsg(lvlError, "warning: `--gc-roots-dir' not specified"); + } else { + myArgs.gcRootsDir = std::filesystem::absolute(myArgs.gcRootsDir); + } if (myArgs.showTrace) { loggerSettings.showTrace.assign(true);