v0.10.0
Highlight of this release is the bump to Buildpack API 0.8 which brings support for SBOM to libcnb.rs. This is also the first release where all libcnb.rs crates are released at the same time and with the same version number. See the changelog below for other changes.
Changed
- libcnb.rs now targets Buildpack API 0.8. Buildpacks need to upgrade the
api
key to0.8
in theirbuildpack.toml
. (#489) - In accordance to the CNB specification
>=0.7
,BuildpackId
no longer permitssbom
as a buildpack id. (#489) - Replace builder style functions from
Launch
with a dedicatedLaunchBuilder
to be more consistent with other builders in the library. Additionally, all fields ofLaunch
can now be modified via the builder pattern. (#487) - Rename
paths
field inlaunch::Slice
topath_globs
and add docs to make it clearer that these strings are Go standard library globs. (#487) - Add explicit
DeleteLayerError
to provide more context when debugging layer handling problems. (#488)
Fixed
- Fix
BuildpackApi
to useu64
instead ofu32
for major and minor version parts. (#489) - Fix permission issues during layer handling when the layer contains read-only directories. (#488)
Added
- Add
BuildResultBuilder::build_sbom
,BuildResultBuilder::launch_sbom
andLayerResultBuilder::sbom
to enable buildpack authors to attach SBOM data for layers and launch. (#489) - Add
sbom::SbomFormat
, describing supported SBOM formats. (#489) - Add
Buildpack::sbom_formats
field. (#489) - Add support for setting a working directory for launch processes. (#489)
- Add
TestContext::download_sbom_files
to allow testing of SBOM logic. (#489)
Removed
- Remove support for legacy BOM. Remove
Launch::bom
,Build::bom
,bom::Bom
,bom::Entry
. (#489)