From 4015bca225eddcee70b3f17e947b7e631fee8e7e Mon Sep 17 00:00:00 2001 From: Michael Bishop Date: Fri, 16 Mar 2018 13:04:48 -0300 Subject: [PATCH] fix a stray newline in a path --- src/lib/Hydra/Plugin/GithubPulls.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Hydra/Plugin/GithubPulls.pm b/src/lib/Hydra/Plugin/GithubPulls.pm index 293a94c2..6a3cc951 100644 --- a/src/lib/Hydra/Plugin/GithubPulls.pm +++ b/src/lib/Hydra/Plugin/GithubPulls.pm @@ -58,6 +58,7 @@ sub fetchInput { system("jq -S . < $filename > $tempdir/github-pulls-sorted.json"); my $storePath = trim(`nix-store --add "$tempdir/github-pulls-sorted.json"` or die "cannot copy path $filename to the Nix store.\n"); + chomp $storePath; my $timestamp = time; return { storePath => $storePath, revision => strftime "%Y%m%d%H%M%S", gmtime($timestamp) }; }