You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the documentation in the README, specifically this section:
If another buildpack provides an entry of type ca-certificates in the build plan with metadata.paths containing an array of certificate paths, it adds all CA certificates from the given paths to the system truststore.
Run pack build example --path ./sample-app --buildpack ./example-buildpack --buildpack paketobuildpacks/ca-certificates
Note the error during detect phase
Motivations
I am creating a custom meta buildpack and would like to include custom CA's during the build phase that are bundled within the buildpack itself rather than at runtime.
I'm fairly new to creating buildpacks so it's possible I misunderstood something about the docs.
The text was updated successfully, but these errors were encountered:
I thought that perhaps because I am providing the cert I would need to also have a [[requires]] block but this prevents it from getting passed to the build phase of the ca-certificates buildpack.
This allows it to complete the detect phase but the ca-certificates buildpack downstream doesn't receive the entry in the build plan when BP_LOG_LEVEL=debug is enabled. So I'm assuming that Pack "consumes" the requires as my example buildpack also provides it.
Hate to tag but just seeing if @dmikusa has any ideas since you seem to actively maintain this project.
Expected Behavior
Based on the documentation in the README, specifically this section:
I would expect a buildpack who provides a build plan during the detection phase, to become required by this buildpack. (note that the docs are wrongly stating that it requires a
type
when the code expectsname
)https://github.com/paketo-buildpacks/ca-certificates/blob/main/cacerts/build.go#L58
Build Plan:
Unfortunately this doesn't seem to be the case and you get an error from the Pack CLI during detect that no buildpacks require ca-certificates.
Current Behavior
You get an error that
ca-certificates
is not required by any buildpacksPossible Solution
I noticed that detection seems to only add a require if a platform binding is provided, which would not be the case here unless I'm misunderstanding the docs: https://github.com/paketo-buildpacks/ca-certificates/blob/main/cacerts/detect.go#L55
Steps to Reproduce
pack build example --path ./sample-app --buildpack ./example-buildpack --buildpack paketobuildpacks/ca-certificates
Motivations
I am creating a custom meta buildpack and would like to include custom CA's during the build phase that are bundled within the buildpack itself rather than at runtime.
I'm fairly new to creating buildpacks so it's possible I misunderstood something about the docs.
The text was updated successfully, but these errors were encountered: