-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Vendor pack CLI code to build with Buildpacks #3445
Conversation
Codecov Report
|
9f8a143
to
f5ec78f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the go-licenses churn (#3493)
@briandealwis you should be able to LGTM since all the changes are buildpacks related now. The go-licences part was merged. |
if !artifact.ForcePull { | ||
if err := b.pull(ctx, out, builderImage); err != nil { | ||
return "", err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is confusing: if we aren't force-pulling then we pull the image? Doesn't pack do this anyways? Or this needs a comment to explain why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pack is either pulling always or pulling never. This is trying to pullIfNotPresent. I'll update the code with a comment.
if !artifact.ForcePull { | ||
// If ForcePull is true, we let pack find and pull the run image | ||
var err error | ||
runImage, err = b.findRunImage(ctx, artifact, builderImage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't pack already do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pack is either pulling always or pulling never. This is trying to pullIfNotPresent
. I'll update the code with a comment.
No description provided.