Skip to content

Update go-containerregistry#651

Merged
dgageot merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:update-goregistry
Jun 8, 2018
Merged

Update go-containerregistry#651
dgageot merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:update-goregistry

Conversation

@dgageot
Copy link
Copy Markdown
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 david@gageot.net

Signed-off-by: David Gageot <david@gageot.net>
MountPaths: []name.Repository{ref.Context()},
}
return remote.Write(targetRef, img, auth, t, wo)
return remote.Write(targetRef, img, auth, t, remote.WriteOptions{})
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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