Skip to content

Commit

Permalink
WIP: why doesn't this panic???
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <[email protected]>
  • Loading branch information
natalieparellano committed Oct 5, 2023
1 parent 160ce19 commit 98befe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/buildpod/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,15 @@ func (g *Generator) fetchBuilderConfig(ctx context.Context, build BuildPodable)
func hasExtensions(image ggcrv1.Image) bool {
orderExtLabel, err := imagehelpers.GetStringLabel(image, extensionOrderLabel)
if err != nil {
panic("Couldn't get label!")
return false
}
var orderExt []buildpack.GroupElement
if err := json.Unmarshal([]byte(orderExtLabel), &orderExt); err != nil {
panic("Couldn't unmarshal!")
return false
}
panic(len(orderExt))
return len(orderExt) > 0
}

Expand Down

0 comments on commit 98befe4

Please sign in to comment.