From d8c20304a0b4a26b5aaef2da62545ffdc96018a2 Mon Sep 17 00:00:00 2001 From: mdrakos Date: Tue, 3 Oct 2023 16:08:17 -0700 Subject: [PATCH] Remove step check --- pkg/platform/runtime/buildplan/buildplan.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/platform/runtime/buildplan/buildplan.go b/pkg/platform/runtime/buildplan/buildplan.go index 1dc21f1285..6f4f0633ef 100644 --- a/pkg/platform/runtime/buildplan/buildplan.go +++ b/pkg/platform/runtime/buildplan/buildplan.go @@ -428,13 +428,6 @@ func buildBuildClosureDependencies(artifactID strfmt.UUID, lookup map[strfmt.UUI // the result map. This is the buildtime closure calculation. step, ok := lookup[currentArtifact.GeneratedBy].(*model.Step) if !ok { - // Artifact was not generated by a step or a source, meaning that - // the buildplan is likely malformed. - _, ok := lookup[currentArtifact.GeneratedBy].(*model.Source) - if !ok { - return nil, errs.New("Incorrect target type for id %s, expected Step or Source", currentArtifact.GeneratedBy) - } - // Artifact was not generated by a step, skipping because these // artifacts do not need to be built. return nil, nil