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

Buildpack API Modes #100

Merged
merged 4 commits into from
Jul 7, 2020
Merged

Buildpack API Modes #100

merged 4 commits into from
Jul 7, 2020

Conversation

ekcasey
Copy link
Member

@ekcasey ekcasey commented Jun 24, 2020

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

Lifecycle must read buildpack API from buildpack.toml and either respect it or fail

Signed-off-by: Emily Casey <ecasey@vmware.com>
@ekcasey ekcasey requested a review from a team as a code owner June 24, 2020 23:18
@ekcasey ekcasey linked an issue Jun 24, 2020 that may be closed by this pull request
buildpack.md Outdated Show resolved Hide resolved
Signed-off-by: Emily Casey <ecasey@vmware.com>
Co-authored-by: Joe Kutner <jpkutner@gmail.com>
@ekcasey ekcasey force-pushed the buildpack-api-modes branch from 203e494 to a468b18 Compare June 25, 2020 14:23
@ekcasey ekcasey added this to the Buildpack 0.3 milestone Jun 25, 2020
@nebhale nebhale requested a review from a team June 26, 2020 20:30
- 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.
Copy link
Member

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+?

Copy link
Member Author

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.

@nebhale nebhale requested a review from a team July 1, 2020 18:16
buildpack.md Outdated Show resolved Hide resolved
buildpack.md Outdated Show resolved Hide resolved
Signed-off-by: Emily Casey <ecasey@vmware.com>
Co-authored-by: Stephen Levine <stephen.levine@gmail.com>
@ekcasey ekcasey force-pushed the buildpack-api-modes branch from 545ab43 to 2ca6cb7 Compare July 7, 2020 19:01
@nebhale nebhale merged commit b7263a6 into buildpack/0.3 Jul 7, 2020
@nebhale nebhale deleted the buildpack-api-modes branch July 7, 2020 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

api key in buildpack.toml can configure lifecycle's buildpack API
5 participants