Skip to content

Commit e69e7b9

Browse files
committed
Fix artifacts being filtered out just because they have no ingredient
1 parent 70dc6a4 commit e69e7b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/buildplan/filters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func FilterStateArtifacts() FilterArtifact {
4747
internalIngredients := sliceutils.Filter(a.Ingredients, func(i *Ingredient) bool {
4848
return i.Namespace == NamespaceInternal
4949
})
50-
if len(a.Ingredients) == len(internalIngredients) {
50+
if len(a.Ingredients) > 0 && len(a.Ingredients) == len(internalIngredients) {
5151
return false
5252
}
5353
if strings.Contains(a.URL, "as-builds/noop") {

0 commit comments

Comments
 (0)