-
Notifications
You must be signed in to change notification settings - Fork 168
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
Update to support 0.10 of the Buildpack API #1730
Comments
This is something we've been meaning to do for a while now and a lot of the work is already in a PR at #1332. But I'm not sure if I (or even @natalieparellano) have the capacity to pick it up again right now. |
From what I can tell, the change would need to be made here: kpack/pkg/cnb/builder_builder.go Line 198 in 8d8218b
And test updated here (and perhaps in other places): kpack/pkg/cnb/create_builder_test.go Line 676 in 8d8218b
As @chenbh mentioned, the team has been stretched a bit thin, so it may take some time for someone to get to this. However this does seem to be a relatively "good first issue" if anyone would like to take it on, I am sure a maintainer would be happy to support. |
@natalieparellano Hi, my colleagues and I need platform 0.10 and would be open to implement the needed changes in a PR. I see there is an old PR that has it implemented but not merged since there was a regression that is now fixed. My question is, is the whole thing with the extensions also required that has been added in https://github.com/buildpacks-community/kpack/blob/b14fce92cada91c214661314041b18b1e72ee638/pkg/cnb/builder_builder.go ? Or is it as simple as just adding the 0.9/0.10 version to supportedPlatformApis var? |
As of 0.10, stacks are deprecated and optional: https://github.com/buildpacks/spec/blob/buildpack/v0.10/buildpack.md#buildpacktoml-toml-stacks-array This allows the stacks to be empty during validation. Fixes buildpacks-community#1730
I created a PR to simply pass the validation if the stacks are empty. As far as I understand there is a whole lot of other stuff to implement to make kpack fully 0.10 compliant (extensions) but this should at least unblock kpack from using some of the more recent heroku ones that do not specify the |
Hello,
I recently ran into a problem when trying to use the heroku based buildpacks where one of their buildpacks didn't define a
stacks
section in the buildpack.toml file. Kpack says that it's not supported,message: "validating buildpack heroku procfile@3.1.2: stack heroku-24 is not supported"
In talking with that team, it seems that kpack neesd to be updated to support 0.10 where
stacks
are optional/deprecated.This came out of this discussion here: heroku/buildpacks-procfile#243
For reference here is when the pack cli fixed it: buildpacks/pack#2047
Yaml
The text was updated successfully, but these errors were encountered: