Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce Stack, with weak validation #789

Merged
merged 4 commits into from
Feb 23, 2024
Merged

Reintroduce Stack, with weak validation #789

merged 4 commits into from
Feb 23, 2024

Conversation

joshwlewis
Copy link
Member

@joshwlewis joshwlewis commented Feb 22, 2024

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.

@joshwlewis joshwlewis requested a review from a team as a code owner February 22, 2024 18:37
@joshwlewis joshwlewis changed the title Reintroduce Stacks, with weak validation Reintroduce Stack, with weak validation Feb 22, 2024
libcnb-data/src/buildpack/stack.rs Show resolved Hide resolved
libcnb-data/src/buildpack/stack.rs Outdated Show resolved Hide resolved
Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
@joshwlewis joshwlewis enabled auto-merge (squash) February 23, 2024 16:16
@joshwlewis joshwlewis merged commit dc95de5 into main Feb 23, 2024
4 checks passed
@joshwlewis joshwlewis deleted the readd-stacks branch February 23, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants