Skip to content

Commit

Permalink
Merge pull request #124 from paketo-buildpacks/bom-label
Browse files Browse the repository at this point in the history
Allow disabling the BOM label
  • Loading branch information
Daniel Mikusa committed Feb 8, 2022
2 parents 16b3969 + b6c6002 commit dd20cca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/buildpacks/libcnb"

"github.com/paketo-buildpacks/libpak/internal"
"github.com/paketo-buildpacks/libpak/sherpa"
)

// Main is called by the main function of a buildpack, encapsulating both detection and build in the same binary.
Expand All @@ -29,6 +30,7 @@ func Main(detector libcnb.Detector, builder libcnb.Builder, options ...libcnb.Op
libcnb.WithEnvironmentWriter(internal.NewEnvironmentWriter()),
libcnb.WithExitHandler(internal.NewExitHandler()),
libcnb.WithTOMLWriter(internal.NewTOMLWriter()),
libcnb.WithBOMLabel(!sherpa.ResolveBool("BP_BOM_LABEL_DISABLED")),
}, options...)...,
)
}

0 comments on commit dd20cca

Please sign in to comment.