Skip to content

Commit

Permalink
Support prefetch-dependencies without hermetic
Browse files Browse the repository at this point in the history
IIUC there is some value in doing a prefetch-dependencies even if
you're not quite ready to enable a hermetic build. This change makes
it easier and more intuitive for people who want to do that.

For a pipeline with a non-empty value for prefetch-input, let's
assume that the intention is to run the prefetch-dependencies task.

(This is a fast patch for an idea that occurred to me while working
on https://issues.redhat.com/browse/EC-585 . Not sure how/where to
test it. If the idea seems reasonable I'd be happy to create a fresh
Jira for it and take some advice on what kind of testing it should
have.)
  • Loading branch information
simonbaird committed Apr 24, 2024
1 parent f58ba64 commit c10a88f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pipelines/template-build/template-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ spec:
- input: $(params.hermetic)
operator: in
values: ["true"]
- input: $(params.prefetch-input)
operator: notin
values: [""]
params:
- name: input
value: $(params.prefetch-input)
Expand Down

0 comments on commit c10a88f

Please sign in to comment.