Skip to content

Commit

Permalink
Clarify what happens with the out paths in the db
Browse files Browse the repository at this point in the history
Only ca derivations might have an empty `path` field (because this one
will only be known at a later stage)
  • Loading branch information
thufschmitt committed Apr 28, 2021
1 parent a12704f commit ca86783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Hydra/Controller/Build.pm
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ sub build_GET {

$c->stash->{template} = 'build.tt';
$c->stash->{isLocalStore} = isLocalStore();
# XXX: If ca-derivations is enabled then this will always return false
# because `$_->path` will be empty
# XXX: If the derivation is content-addressed then this will always return
# false because `$_->path` will be empty
$c->stash->{available} =
$c->stash->{isLocalStore}
? all { $_->path && isValidPath($_->path) } $build->buildoutputs->all
Expand Down

0 comments on commit ca86783

Please sign in to comment.