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

tarball: pass imageToTags #1563

Merged
merged 2 commits into from
Feb 9, 2023
Merged

Conversation

thepwagner
Copy link
Contributor

In tarball.MultiWrite(), the map[name.Reference]v1.Image is inverted to a map[v1.Image][]string by 3 independent helpers. This PR modifies to invert the map once, then pass the result between helpers.

I'd made this change as part of a failed attempt at tarball.WriteIndex() - I realize now why that was a bad idea, but this snippet seemed worth saving.

@imjasonh imjasonh self-requested a review February 9, 2023 14:44
@imjasonh
Copy link
Collaborator

imjasonh commented Feb 9, 2023

Thanks!

@imjasonh imjasonh merged commit 3624968 into google:main Feb 9, 2023
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.

None yet

2 participants