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

Clarify buildpack API must be u64 numbers #265

Merged

Conversation

schneems
Copy link
Contributor

Currently the spec doesn't state what and are expected to be.

I am proposing that we scope them to only contain numbers which seems to be what the lifecycle is already expecting:

https://github.com/buildpacks/lifecycle/blob/a7428a55c2a14d8a37e84285b95dc63192e3264e/api/version.go#L13-L16

Going beyond specifying they should be numbers, I also want to specify "unsigned 64 bit" integer which further bounds api versions to be greater than (or equal to) zero and less than (or equal to) 1,844,674,4073,709,551,615.

Currently the spec doesn't state what <major> and <minor> are expected to be.

I am proposing that we scope them to only contain numbers which seems to be what the lifecycle is already expecting:

https://github.com/buildpacks/lifecycle/blob/a7428a55c2a14d8a37e84285b95dc63192e3264e/api/version.go#L13-L16

Going beyond specifying they should be numbers, I also want to specify "unsigned 64 bit" integer which further bounds api versions to be greater than (or equal to) zero and less than (or equal to) 1,844,674,4073,709,551,615.

Signed-off-by: Richard Schneeman <rschneeman@salesforce.com>
@schneems schneems requested a review from a team as a code owner October 27, 2021 20:30
@schneems
Copy link
Contributor Author

Exactly the same as #263 but without rebasing in main.

@hone
Copy link
Member

hone commented Oct 27, 2021

Thanks @schneems !

@hone hone merged commit 32c32d0 into buildpacks:buildpack/0.7 Nov 3, 2021
Malax added a commit to heroku/libcnb.rs that referenced this pull request Aug 25, 2022
This was clarified in the upstream buildpack API 0.7: buildpacks/spec#265
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.

4 participants