Skip to content

Commit 99fd378

Browse files
committed
Don't enforce artifact <-> ingredient relation as artifacts produced by wheels won't have an ingredient
1 parent 847e40a commit 99fd378

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/buildplan/hydrate.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,6 @@ func (b *BuildPlan) hydrateWithIngredients(artifact *Artifact, platformID *strfm
211211
// If there are duplicates we're likely to see failures down the chain if live, though that's by no means guaranteed.
212212
// Surfacing it here will make it easier to reason about the failure.
213213
func (b *BuildPlan) sanityCheck() error {
214-
// Ensure all artifacts have an associated ingredient
215-
// If this fails either the API is bugged or the hydrate logic is bugged
216-
for _, a := range b.Artifacts() {
217-
if raw.IsStateToolMimeType(a.MimeType) && len(a.Ingredients) == 0 {
218-
return errs.New("artifact '%s (%s)' does not have an ingredient", a.ArtifactID, a.DisplayName)
219-
}
220-
}
221-
222214
// The remainder of sanity checks aren't checking for error conditions so much as they are checking for smoking guns
223215
// If these fail then it's likely the API has changed in a backward incompatible way, or we broke something.
224216
// In any case it does not necessarily mean runtime sourcing is broken.

0 commit comments

Comments
 (0)