Closed dkirrane closed 1 year ago
pack build foo --buildpack paketo-buildpacks/ca-certificates --buildpack paketo-buildpacks/azul-zulu --buildpack paketo-buildpacks/java
This happens sometimes, you just need to tell it exactly which buildpack to load. You've told it to pull in the latest paketo-buildpacks/ca-certificates
, but there may also be one or more versions in the builder. Most of the time, these should all be the same, but at times because of varying release cycles can differ.
You can disambiguate by setting the version in your build command:
pack build foo --buildpack paketo-buildpacks/ca-certificates@3.6.3 --buildpack paketo-buildpacks/azul-zulu --buildpack paketo-buildpacks/java
Give that a try and let me know if it doesn't work.
Yip that works. Where can the version the version used by the builder?
You can pack builder inspect
a builder image to see what versions are included. The error message also has the versions listed, but they are all mixed together.
Expected Behavior
As per docs I'm using command the command from https://paketo.io/docs/howto/java/#use-an-alternative-jvm
pack build foo --buildpack paketo-buildpacks/ca-certificates --buildpack paketo-buildpacks/azul-zulu --buildpack paketo-buildpacks/java
But I hit error
ERROR: failed to build: processing buildpacks order: unable to resolve version: multiple versions of paketo-buildpacks/ca-certificates - must specify an explicit version
Verbose logs