Skip to content

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
Contributor

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.

2 participants