-
Notifications
You must be signed in to change notification settings - Fork 181
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
feat: support fetch a blob from a remote registry #520
Conversation
Codecov Report
@@ Coverage Diff @@
## main #520 +/- ##
==========================================
+ Coverage 70.78% 70.79% +0.01%
==========================================
Files 11 11
Lines 421 428 +7
==========================================
+ Hits 298 303 +5
- Misses 100 101 +1
- Partials 23 24 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Have only reviewed one file so far, but publishing in advance 😃
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.
Left some comments from the perspective of someone new to the project.
3089a08
to
097dc7f
Compare
defc485
to
f400dd7
Compare
Signed-off-by: Zoey Li <[email protected]>
Signed-off-by: Zoey Li <[email protected]>
Signed-off-by: Zoey Li <[email protected]>
Signed-off-by: Zoey Li <[email protected]>
Signed-off-by: Zoey Li <[email protected]>
Signed-off-by: Zoey Li <[email protected]>
Signed-off-by: Zoey Li <[email protected]>
cmd/oras/blob/fetch.go
Outdated
} | ||
|
||
// fetch blob | ||
desc, rc, err := oras.Fetch(ctx, src, opts.targetRef, oras.FetchOptions{}) |
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 seems the rc
is never verified against the desc
.
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.
create an issue to track this #547
Signed-off-by: Zoey Li <[email protected]>
Signed-off-by: Zoey Li <[email protected]>
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
Signed-off-by: Zoey Li <[email protected]>
support fetch a blob from a remote registry
Resolves: #475
Signed-off-by: Zoey Li [email protected]