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
When you build an image on AMD64, and then switch to ARM64, the cache is not invalidated. I would expect that the cache is invalidated where appropriate.
Current Behavior
Cached items are not invalidated based on architecture changes.
Possible Solution
I think we can handle this in libpak, so that individual buildpacks don't need to know all handle this. If we look at the present architecture, we can compare that to metadata from previous installs. If the arch changes, then invalidate the cache on that layer and recreate it.
This is not a huge problem as most people can't just change their architecture, but on Mac M-series laptops you can. You can build for both architectures. This is where you can run into this problem.
The text was updated successfully, but these errors were encountered:
Expected Behavior
When you build an image on AMD64, and then switch to ARM64, the cache is not invalidated. I would expect that the cache is invalidated where appropriate.
Current Behavior
Cached items are not invalidated based on architecture changes.
Possible Solution
I think we can handle this in libpak, so that individual buildpacks don't need to know all handle this. If we look at the present architecture, we can compare that to metadata from previous installs. If the arch changes, then invalidate the cache on that layer and recreate it.
Steps to Reproduce
See paketo-buildpacks/spring-boot#491 (comment)
Motivations
This is not a huge problem as most people can't just change their architecture, but on Mac M-series laptops you can. You can build for both architectures. This is where you can run into this problem.
The text was updated successfully, but these errors were encountered: