Skip to content

Commit

Permalink
Merge pull request #109 from buildpacks/samj1912-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
sambhav authored Jan 11, 2022
2 parents 896a63b + 2d891dd commit 49c96bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func Build(builder Builder, options ...Option) {
}
}

if API != "0.1" && API != "0.2" && API != "0.3" && API != "0.4" && API != "0.5" && API != "0.6" {
if API != "0.5" && API != "0.6" {
if err := validateSBOMFormats(ctx.Layers.Path, ctx.Buildpack.Info.SBOMFormats); err != nil {
config.exitHandler.Error(fmt.Errorf("unable to validate SBOM\n%w", err))
return
Expand Down

0 comments on commit 49c96bb

Please sign in to comment.