Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lifecycle image that matches builder platform #1216

Merged
merged 3 commits into from
Jun 29, 2021

Conversation

aemengo
Copy link
Contributor

@aemengo aemengo commented Jun 25, 2021

Summary

This PR fetches a lifecycle image that is the same platform as the requested builder image, when this builder is untrusted.

This PR also includes a refactor the image.Fetch() method signature. This was done so that future modifications may not involve changes in so many files.

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

Caveats

Full disclosure: I don't have an arm machine, so I've never seen this work 馃槵

Related

Resolves #1197

Signed-off-by: Anthony Emengo <aemengo@vmware.com>
@github-actions github-actions bot added the type/enhancement Issue that requests a new feature or improvement. label Jun 25, 2021
@github-actions github-actions bot added this to the 0.20.0 milestone Jun 25, 2021
@codecov
Copy link

codecov bot commented Jun 25, 2021

Codecov Report

Merging #1216 (2dc1745) into main (b956476) will increase coverage by 0.02%.
The diff coverage is 85.19%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1216      +/-   ##
==========================================
+ Coverage   80.94%   80.96%   +0.02%     
==========================================
  Files         136      136              
  Lines        8313     8316       +3     
==========================================
+ Hits         6728     6732       +4     
+ Misses       1159     1158       -1     
  Partials      426      426              
Flag Coverage 螖
os_linux 80.49% <87.50%> (-0.01%) 猬囷笍
os_macos 78.03% <70.84%> (-0.02%) 猬囷笍
os_windows 80.87% <85.19%> (+0.02%) 猬嗭笍
unit 80.58% <87.50%> (+0.03%) 猬嗭笍

Flags with carried forward coverage won't be shown. Click here to find out more.

Signed-off-by: Anthony Emengo <aemengo@vmware.com>
@aemengo aemengo force-pushed the fix-pack-build-arm-failures branch from e52e41a to 70888d3 Compare June 28, 2021 11:51
@aemengo aemengo marked this pull request as ready for review June 28, 2021 13:11
@aemengo aemengo requested a review from a team as a code owner June 28, 2021 13:11
Copy link
Member

@jromero jromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from one critique this is a very nice clean PR. Thanks!

internal/image/fetcher.go Outdated Show resolved Hide resolved
* Remove TODO statement

Signed-off-by: Anthony Emengo <aemengo@vmware.com>
@jromero jromero changed the title Fix pack build arm failures Use lifecycle image that matches builder platform Jun 29, 2021
@jromero jromero added type/bug Issue that reports an unexpected behaviour. and removed type/enhancement Issue that requests a new feature or improvement. labels Jun 29, 2021
@jromero jromero merged commit f3d6be6 into buildpacks:main Jun 29, 2021
@jromero
Copy link
Member

jromero commented Jun 29, 2021

馃 Thank you for this fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Issue that reports an unexpected behaviour.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pack build fails with untrusted builders on Apple Silicon
2 participants