heroku / libcnb.rs

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

Reintroduce Stack, with weak validation #789

Closed joshwlewis closed 4 months ago

joshwlewis commented 4 months ago

As noted in #788, working with buildpacks that still have [[stacks]] in buildpack.toml can cause some trouble. While [[stacks]] is deprecated in Buildpack API 0.10, it is still supported: https://github.com/buildpacks/spec/blob/buildpack/v0.10/buildpack.md#buildpacktoml-toml-stacks-array.

This PR re-introduces support for serializing a buildpack.toml with [[stacks]] in it. However, Stack remains unused within libcnb, and thus the validation and parsing is weaker. I would expect Stack to be removed again in Buildpack API 0.11. This change is mostly to facilitate upgrades.