-
Notifications
You must be signed in to change notification settings - Fork 109
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
When using extensions, if the last layer in the run image is duplicated, then the process fail with an error #1300
Comments
I'm not sure if this is related, but I'm getting a similar error when trying to follow the buildpacks.io guide to create an extension here. Running on an amd64 mac.
|
Thinking about this further - we can fix this in the lifecycle, but I wonder if it makes sense to error (or at least warn) when the run image contains a duplicate top layer, because the resulting app image will not be rebased correctly. Looking here, we consider all layers underneath (and including) the first instance of the top layer diff ID to be the base image. The alternative would be to change how we do this in imgutil. @jabrown85 do you have any thoughts here? |
@jericop thanks for this - I'm not able to reproduce 😕 - it does look like a different issue as I believe the error message is being emitted by pack. Is it possible you could open an issue on the pack repo? |
…yers in addition to the original top layer digest to determine what is an extension layer and what is an original layer. Relying on the original top layer digest (only) introduced errors if the original run image had a duplicated top layer. Fixes #1300 Signed-off-by: Natalie Arellano <narellano@vmware.com>
…yers (#1306) in addition to the original top layer digest to determine what is an extension layer and what is an original layer. Relying on the original top layer digest (only) introduced errors if the original run image had a duplicated top layer. Fixes #1300 Signed-off-by: Natalie Arellano <narellano@vmware.com>
@jericop were you able to execute that step of the tutorial? |
Summary
When using extensions, if the run image latest layer is duplicated, then the process fails with an error like:
Reproduction
Steps
Current behavior
The build fails with this error:
Expected behavior
The build must complete successfully
Context
lifecycle version
0.18.4
platform version(s)
anything else?
no
The text was updated successfully, but these errors were encountered: