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

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.95%. Comparing base (9f42e02) to head (7bc21d4).
⚠️ Report is 188 commits behind head on main.

Files with missing lines Patch % Lines
pkg/v1/tarball/write.go 84.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1563      +/-   ##
==========================================
- Coverage   72.97%   72.95%   -0.02%     
==========================================
  Files         118      118              
  Lines        9420     9417       -3     
==========================================
- Hits         6874     6870       -4     
- Misses       1854     1855       +1     
  Partials      692      692              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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