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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update go-containerregistry #651

Merged
merged 1 commit into from
Jun 8, 2018

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jun 8, 2018

I don't know what I'm doing here.

@jonjohnsonjr could you please take a look at what I had to change in pkg/skaffold/docker/image.go?
Thanks!

Signed-off-by: David Gageot [email protected]

Signed-off-by: David Gageot <[email protected]>
MountPaths: []name.Repository{ref.Context()},
}
return remote.Write(targetRef, img, auth, t, wo)
return remote.Write(targetRef, img, auth, t, remote.WriteOptions{})
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to keep MountOptions if we can.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

MountPaths field was removed. I don't know if something else needs to be done. @jonjohnsonjr @mattmoor ?

Copy link
Contributor

@jonjohnsonjr jonjohnsonjr Jun 8, 2018

Choose a reason for hiding this comment

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

The happy path for mounting is now handled by the library, see google/go-containerregistry#186

tl;dr: remote layer reads retain the source repo and we specialize that case on remote layer writes to mount from where it was read, so you shouldn't need to do anything now :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, nice. Missed that change in the library somehow.

@jonjohnsonjr
Copy link
Contributor

LGTM

@dgageot dgageot merged commit 602db9b into GoogleContainerTools:master Jun 8, 2018
@dgageot dgageot deleted the update-goregistry branch December 28, 2018 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants