Skip to content

Commit

Permalink
Filter artifacts for reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Sep 5, 2024
1 parent 162fb93 commit fe2051f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/buildplan/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (a *Artifact) dependencies(recursive bool, seen map[strfmt.UUID]struct{}, r
for _, ac := range a.children {
related := len(relations) == 0
for _, relation := range relations {
if ac.Relation == relation {
if ac.Relation == relation && raw.IsStateToolMimeType(ac.Artifact.MimeType) {
related = true
}
}
Expand Down
2 changes: 0 additions & 2 deletions pkg/buildplan/hydrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ func (b *BuildPlan) hydrateWithIngredients(artifact *Artifact, platformID *strfm
default:
return errs.New("unexpected node type '%T': %#v", v, v)
}

return nil
})
if err != nil {
return errs.Wrap(err, "error hydrating ingredients")
Expand Down
3 changes: 3 additions & 0 deletions pkg/buildplan/ingredient.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ func (i *Ingredient) runtimeDependencies(recursive bool, seen map[strfmt.UUID]st

dependencies := Ingredients{}
for _, a := range i.Artifacts {
if !raw.IsStateToolMimeType(a.MimeType) {
continue
}
for _, ac := range a.children {
if ac.Relation != RuntimeRelation {
continue
Expand Down

0 comments on commit fe2051f

Please sign in to comment.