Skip to content

Commit

Permalink
Merge pull request #341 from paketo-buildpacks/fix-chars
Browse files Browse the repository at this point in the history
Do not use effect.NewExecutor use CommandExecutor instead
  • Loading branch information
anthonydahanne authored Oct 4, 2024
2 parents 1c610b5 + 511761b commit c2024fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error) {
)

if b.SBOMScanner == nil {
b.SBOMScanner = sbom.NewSyftCLISBOMScanner(context.Layers, effect.NewExecutor(), b.Logger)
b.SBOMScanner = sbom.NewSyftCLISBOMScanner(context.Layers, effect.CommandExecutor{}, b.Logger)
}
if err := b.SBOMScanner.ScanLaunch(context.Application.Path, libcnb.SyftJSON, libcnb.CycloneDXJSON); err != nil {
return libcnb.BuildResult{}, fmt.Errorf("unable to create Build SBoM \n%w", err)
Expand Down

0 comments on commit c2024fb

Please sign in to comment.