heroku / libcnb.rs

A framework for writing Cloud Native Buildpacks in Rust
BSD 3-Clause "New" or "Revised" License
35 stars 6 forks source link

Improve buildpack packaging #810

Open runesoerensen opened 6 months ago

runesoerensen commented 6 months ago

When packaging buildpacks using libcnb-package (and by extension, libcnb-cargo), the packaged buildpack.toml is copied directly from the source, and there is no validation that the specified target triple is actually supported by the buildpack.

Additionally, when multiple supported targets are defined in the source buildpack.toml, copying that file to the packaged output directory inherently means that it is never accurate, as libcnb-package currently only support compiling binaries for a single target triple.

We may want to consider: