Skip to content

tarball: pass imageToTags#1563

Merged
imjasonh merged 2 commits intogoogle:mainfrom
thepwagner:tarball-imagetotags
Feb 9, 2023
Merged

tarball: pass imageToTags#1563
imjasonh merged 2 commits intogoogle:mainfrom
thepwagner:tarball-imagetotags

Conversation

@thepwagner
Copy link
Copy Markdown
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
Copy Markdown
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