From dd2990dee389a084de2ca4c278b14a265ace85d4 Mon Sep 17 00:00:00 2001 From: Aleks-Daniel Jakimenko-Aleksejev Date: Thu, 26 Oct 2023 22:11:11 +0300 Subject: [PATCH] Consider long-term storage when building Otherwise Buildable just keeps building commits that are already built and archived. --- lib/Whateverable/Building.pm6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Whateverable/Building.pm6 b/lib/Whateverable/Building.pm6 index d73edeb..9b04be5 100644 --- a/lib/Whateverable/Building.pm6 +++ b/lib/Whateverable/Building.pm6 @@ -101,6 +101,8 @@ sub process-commit($project, $commit) is export { my $archive-path = $project-config .IO.add(“$commit.tar.zst”).absolute.IO; return False if $archive-path ~~ :e; # already exists + return False if $project-config + .IO.add(“$commit”).absolute.IO ~~ :e; # already exists in long-term storage my $BUILDS-LOCATION = “$*TMPDIR/whateverable/{$project}”.IO; mkdir $BUILDS-LOCATION;