-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
deprecate Versioned in favor of oci.Versioned #3887
Conversation
7c66012
to
908fe16
Compare
908fe16
to
0fdf1b4
Compare
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #3887 +/- ##
==========================================
- Coverage 56.63% 56.60% -0.03%
==========================================
Files 106 106
Lines 10674 10667 -7
==========================================
- Hits 6045 6038 -7
Misses 3955 3955
Partials 674 674
☔ View full report in Codecov by Sentry. |
If we are going to do this, we must look into #3869 as well |
2df0b42
to
2d6cefb
Compare
@thaJeztah @milosgajdos What's the state of this PR now that #3869 has been merged? Is it still relevant? If so, it needs a rebase. |
2d6cefb
to
075b3f8
Compare
Did a quick rebase, but I kept the previous version in a backup branch, as I need to double-check I did the rebase right |
This needs a rebase @thaJeztah |
075b3f8
to
8efd133
Compare
84e4f6e
to
1deb80a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No; there's a difference between machine-parseable comments and "actual" comments. Machine-parseable comments must follow a specific pattern;
And (I think), must be their own paragraph when combined with regular comments (so a empty line before them); also see moby/moby#43804 which has some links. Now, if only the gosec would follow the standards (instead of |
I see yeah, ignore me https://golangci-lint.run/usage/false-positives/#nolint-directive |
return m.MediaType, m.canonical, nil | ||
var mediaType string | ||
if m.MediaType == "" { | ||
mediaType = v1.MediaTypeImageIndex | ||
} else { | ||
mediaType = m.MediaType | ||
} | ||
|
||
return mediaType, m.canonical, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been quite a while since I originally drafted this PR; I don't really recall making this part of the change 🙈. I think it's ok (i.e. default to the expected MediaType if none was set), but pointing it out just in case
This needs a rebase now @thaJeztah |
Update the Manifest types to use the oci implementation of the Versioned struct. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1deb80a
to
1e89cf7
Compare
rebased 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been a long time coming. LGTM!
Update the Manifest types to use the oci implementation of the Versioned struct.