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.
As noted in #788, working with buildpacks that still have
[[stacks]]
inbuildpack.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 expectStack
to be removed again in Buildpack API 0.11. This change is mostly to facilitate upgrades.