Skip to content

Commit

Permalink
Consider long-term storage when building
Browse files Browse the repository at this point in the history
Otherwise Buildable just keeps building commits that are already built
and archived.
  • Loading branch information
AlexDaniel committed Oct 26, 2023
1 parent 5cce2a9 commit dd2990d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Whateverable/Building.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ sub process-commit($project, $commit) is export {
my $archive-path = $project-config<archives-path>
.IO.add($commit.tar.zst).absolute.IO;
return False if $archive-path ~~ :e; # already exists
return False if $project-config<archives-path>
.IO.add($commit).absolute.IO ~~ :e; # already exists in long-term storage

my $BUILDS-LOCATION = $*TMPDIR/whateverable/{$project}.IO;
mkdir $BUILDS-LOCATION;
Expand Down

0 comments on commit dd2990d

Please sign in to comment.