How to integrate different buildpack versions into a single builder ? #255
Replies: 2 comments 1 reply
-
When I tried to build my app with this builder image, it was showing this |
Beta Was this translation helpful? Give feedback.
-
I don't think you could do that because while you can include multiple copies of a buildpack in the builder, you'll probably end up with detection issues. I think both of those versions of Node.js are going to have the same detection criteria, so the one you list first in the order group is always going to win detection. Unless the buildpack in question is taking into consideration at detection time the version you request and if it supports that version (I don't know as I'm not super familiar with Node.js buildpacks). Maybe one of the @paketo-buildpacks/nodejs-maintainers could comment on that.
What I would suggest is to not use two versions of the buildpack. Instead to repackage the buildpack. So you can do something like this:
This sides steps the whole detection issue cause you just have one buildpack. You may not even need a builder at that point, unless you have other reasons for it, you could probably just do something like |
Beta Was this translation helpful? Give feedback.
-
I am using a builder called abc, I want node versions 14,16,18,19,20 to participate in my builder.
I want to integrate https://github.com/paketo-buildpacks/nodejs/releases/tag/v2.2.0 and https://github.com/paketo-buildpacks/nodejs/releases/tag/v1.8.0 in my builder, is it possible ?
https://github.com/paketo-buildpacks/nodejs/releases/tag/v2.2.0 - this contains node version14,16,18
https://github.com/paketo-buildpacks/nodejs/releases/tag/v1.8.0 - this contains node 16,18,19,20
contents of my builder.toml
[[buildpacks]]
uri = "docker://xyz/paketo-buildpacks/nodejs:1.8.0"
version = "1.8.0"
[[buildpacks]]
uri = "docker://xyz/paketo-buildpacks/nodejs:2.2.0"
version = "2.2.0"
[[order]]
[[order.group]]
id = "paketo-buildpacks/nodejs"
version = "1.8.0"
[[order]]
[[order.group]]
id = "paketo-buildpacks/nodejs"
version = 2.2.0"
[stack]
build-image = "xyz/stacks/build-stack/base:0.0.2"
id = "io.buildpacks.stacks.jammy"
run-image = "xyz/stacks/run-stack/base:0.0.2"
run-image-mirrors = []
This wont work , to my knowledge as the buildpack is having the same id but different versions.
How to ensure that my usecase can be worked out ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions