@@ -13,7 +13,7 @@ import core.cpuid : threadsPerCPU;
1313import std.process : pipeProcess, wait, Redirect, kill;
1414import std.exception : enforce;
1515import std.format : fmt = format;
16- import std.logger : tracef;
16+ import std.logger : tracef, infof ;
1717
1818import mcl.utils.env : optional, MissingEnvVarsException, parseEnv;
1919import mcl.utils.string : enumToString, StringRepresentation, MaxWidth, writeRecordAsTable;
@@ -419,14 +419,19 @@ unittest
419419
420420void saveGHCIComment (SummaryTableEntry[] tableSummaryJSON)
421421{
422+ import std.path : buildPath, absolutePath;
423+
422424 string comment = " Thanks for your Pull Request!" ;
423425 comment ~= " \n\n Below you will find a summary of the cachix status of each package, for each supported platform." ;
424426 comment ~= " \n\n | package | `x86_64-linux` | `x86_64-darwin` | `aarch64-darwin` |" ;
425427 comment ~= " \n | ------- | -------------- | --------------- | ---------------- |" ;
426428 comment ~= tableSummaryJSON.map! (
427429 pkg => " \n | " ~ pkg.name ~ " | " ~ pkg.x86_64.linux ~ " | " ~ pkg.x86_64.darwin ~ " | " ~ pkg.aarch64.darwin ~ " |" )
428430 .join(" " );
429- (rootDir() ~ " comment.md" ).write(comment);
431+
432+ auto outputPath = rootDir().buildPath(" comment.md" ).absolutePath;
433+ write(outputPath, comment);
434+ infof(" Wrote GitHub comment file to '%s'" , outputPath);
430435}
431436
432437@(" saveGHCIComment" )
0 commit comments