Skip to content

fix: reference in the formatted output of oras pull is invalid#1496

Merged
qweeah merged 6 commits into
oras-project:mainfrom
wangxiaoxuan273:reference-bug
Sep 9, 2024
Merged

fix: reference in the formatted output of oras pull is invalid#1496
qweeah merged 6 commits into
oras-project:mainfrom
wangxiaoxuan273:reference-bug

Conversation

@wangxiaoxuan273

@wangxiaoxuan273 wangxiaoxuan273 commented Sep 5, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1494

@codecov

codecov Bot commented Sep 5, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.73%. Comparing base (40dd8f9) to head (17b3f10).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1496      +/-   ##
==========================================
+ Coverage   85.62%   85.73%   +0.10%     
==========================================
  Files         116      116              
  Lines        4056     4044      -12     
==========================================
- Hits         3473     3467       -6     
+ Misses        349      345       -4     
+ Partials      234      232       -2     

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

Comment thread cmd/oras/internal/option/target.go Outdated

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can you help add a E2E test to cover oras pull --format {{.reference}} case? Thanks!

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Xiaoxuan Wang and others added 6 commits September 9, 2024 15:18
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
@qweeah qweeah merged commit 70ac79b into oras-project:main Sep 9, 2024
@wangxiaoxuan273 wangxiaoxuan273 deleted the reference-bug branch September 23, 2024 02:08
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.

reference in the formatted output of oras pull is invalid

2 participants