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
remove the magic line (i.e. don't convert stacks to targets at all). This seems the most logical to me as a buildpack author, because (I think) I don't see any value in the conversion from stacks to targets during my build phase.
check that there is exactly one stack present, and that this single stack is bionic. This keeps the spirit of the current behavior of converting bionic stack to targets, while dropping the incorrect conversion when there are multiple stacks.
add magic lines for other commonly used stacks (e.g. jammy). This preserves the conversion from stacks to targets for bionic and other common stacks, but suffers from the question of: "which stacks do we support"?
Context
lifecycle version
v0.19.4 and v0.19.5 - older versions are not affected
platform version(s)
any platform
The text was updated successfully, but these errors were encountered:
check that there is exactly one stack present, and that this single stack is bionic. This keeps the spirit of the current behavior of converting bionic stack to targets, while dropping the incorrect conversion when there are multiple stacks.
without any further changes to the spec. But, we will probably want to revisit this logic as we further deprecate stacks to ensure we don't hit more roadblocks like this in the future.
FWIW the bionic stack is deprecated over in Paketo. I think if we want to continue with this automatic conversion of stack IDs, we should definitely include Jammy (as the only supported Paketo stack)
Summary / Reproduction
Given:
buildpack.toml
andtargets
defined inbuildpack.toml
andbionic
andjammy
)Then:
The build fails with the following output:
I think this is due to this line in the lifecycle:
Suggested fix
I would suggest one of the following fixes:
stacks
totargets
during my build phase.bionic
. This keeps the spirit of the current behavior of convertingbionic
stack to targets, while dropping the incorrect conversion when there are multiple stacks.jammy
). This preserves the conversion fromstacks
totargets
forbionic
and other common stacks, but suffers from the question of: "which stacks do we support"?Context
lifecycle version
v0.19.4 and v0.19.5 - older versions are not affected
platform version(s)
any platform
The text was updated successfully, but these errors were encountered: