Skip to content

Vendor pack CLI code to build with Buildpacks#3445

Merged
dgageot merged 4 commits intoGoogleContainerTools:masterfrom
dgageot:pack
Jan 16, 2020
Merged

Vendor pack CLI code to build with Buildpacks#3445
dgageot merged 4 commits intoGoogleContainerTools:masterfrom
dgageot:pack

Conversation

@dgageot
Copy link
Copy Markdown
Contributor

@dgageot dgageot commented Dec 24, 2019

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 24, 2019

Codecov Report

Merging #3445 into master will decrease coverage by 0.29%.
The diff coverage is 38.46%.

Impacted Files Coverage Δ
pkg/skaffold/util/tar.go 39.7% <ø> (-17.77%) ⬇️
pkg/skaffold/docker/image.go 76.36% <ø> (-0.91%) ⬇️
pkg/skaffold/build/buildpacks/logger.go 0% <0%> (ø)
pkg/skaffold/build/buildpacks/lifecycle.go 66% <55.55%> (-18.42%) ⬇️
...affold/kubernetes/portforward/kubectl_forwarder.go 68.29% <0%> (+2.43%) ⬆️

@dgageot dgageot force-pushed the pack branch 7 times, most recently from 9f8a143 to f5ec78f Compare January 10, 2020 13:46
@dgageot dgageot marked this pull request as ready for review January 13, 2020 10:31
Copy link
Copy Markdown
Member

@briandealwis briandealwis left a 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)

@dgageot
Copy link
Copy Markdown
Contributor Author

dgageot commented Jan 15, 2020

@briandealwis you should be able to LGTM since all the changes are buildpacks related now. The go-licences part was merged.

Comment on lines +53 to +58
if !artifact.ForcePull {
if err := b.pull(ctx, out, builderImage); err != nil {
return "", err
Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Contributor Author

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)
Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

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.

Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
@dgageot dgageot merged commit 5cc7694 into GoogleContainerTools:master Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants