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

*layout.layoutIndex implements Layer(Hash) for compatibility with remote.WriteIndex #1865

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bmoylan
Copy link

@bmoylan bmoylan commented Jan 19, 2024

remote.Pusher detects an ImageIndex's children using partial.ComputeManifests, which gets and uploads a v1.Layer element if the index implements withLayer.

This change satisfies that condition, allowing for uploading an index containing non-image entries in a layout.

Thanks in advance!

…ote.WriteIndex

remote.Pusher detects an ImageIndex's children using partial.ComputeManifests,
which gets and uploads a v1.Layer element _if the index implements withLayer_.

This change satisfies that condition.
@@ -126,6 +126,19 @@ func (i *layoutIndex) Blob(h v1.Hash) (io.ReadCloser, error) {
return i.path.Blob(h)
}

// Workaround for #819.
Copy link
Author

Choose a reason for hiding this comment

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

I noticed this comment in other locations where the private interfaces exposing extra extensibility are implemented

Copy link

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

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.

None yet

1 participant