-
Notifications
You must be signed in to change notification settings - Fork 70
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
Buildpack API Modes #100
Buildpack API Modes #100
Conversation
Lifecycle must read buildpack API from buildpack.toml and either respect it or fail Signed-off-by: Emily Casey <ecasey@vmware.com>
Signed-off-by: Emily Casey <ecasey@vmware.com> Co-authored-by: Joe Kutner <jpkutner@gmail.com>
203e494
to
a468b18
Compare
- MUST either conform to the matching version of this specification when interfacing with the buildpack or | ||
- return an error to the platform if it does not support `<buildpack API Version>` | ||
|
||
The lifecycle MAY return an error to the platform if two or more buildpacks within a group declare buildpack API versions that the lifecycle cannot support together within a single build, even if both are supported independently. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the RFC:
the spec may not change in a way that precludes buildpacks implementing different 0.x APIs from running together.
This seems contradictory, but I assume atm you mean 0.1
and 0.2+
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is contradictory. This error case would potentially apply to a future 0.4
/1.0
incompatibility.
Signed-off-by: Emily Casey <ecasey@vmware.com> Co-authored-by: Stephen Levine <stephen.levine@gmail.com>
545ab43
to
2ca6cb7
Compare
Lifecycle must read buildpack API from buildpack.toml and either respect it or fail
Resolves #93
Related RFC: https://github.com/buildpacks/rfcs/blob/main/text/0041-api-version-compat.md