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

Fix default buildpack API version. #1329

Merged
merged 1 commit into from
Nov 18, 2021
Merged

Conversation

mboldt
Copy link
Contributor

@mboldt mboldt commented Nov 18, 2021

Summary

Fix default buildpack API version in pack buildpack new

It was incorrectly pulling the latest supported platform API version.
Explicitly declare the default version instead of dynamically pulling,
as updates may require changes to the buildpack tempalte.

I chose version 0.5 since that is what is declared in the main branch of the spec. There is also a buildpack spec 0.6 tag (which still declares it's version 0.5) and even a reference to buildpack API 0.7 in lifecycle; happy to use a different version based on feedback.

Output

When generating a buildpack with pack buildpack new without specifying a buildpack API version:

Before

In buildpack.toml:

api = "<latest-supported-platform-api-version>"

After

In buildpack.toml:

api = "0.5"

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

Related

Slack discussion of this.

I don't know if the generated buildpack is currently compatible with all supported buildpack API versions, but if we need slight differences based on the specified buildpack API version, that could be a follow-on to this.

It was incorrectly pulling the latest supported platform API version.
Explicitly declare the default version instead of dynamically pulling,
as updates may require changes to the buildpack tempalte.

Signed-off-by: Mikey Boldt <mboldt@vmware.com>
@mboldt mboldt requested a review from a team as a code owner November 18, 2021 18:17
@github-actions github-actions bot added this to the 0.23.0 milestone Nov 18, 2021
@github-actions github-actions bot added the type/enhancement Issue that requests a new feature or improvement. label Nov 18, 2021
@jromero jromero added type/bug Issue that reports an unexpected behaviour. and removed type/enhancement Issue that requests a new feature or improvement. labels Nov 18, 2021
@jromero jromero merged commit fe92411 into buildpacks:main Nov 18, 2021
@mboldt mboldt deleted the fix-buildpack-api branch November 18, 2021 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Issue that reports an unexpected behaviour.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants