Skip to content

feat: improve error message when detecting conflicting flags#1345

Merged
qweeah merged 3 commits into
oras-project:mainfrom
wangxiaoxuan273:msg
Apr 16, 2024
Merged

feat: improve error message when detecting conflicting flags#1345
qweeah merged 3 commits into
oras-project:mainfrom
wangxiaoxuan273:msg

Conversation

@wangxiaoxuan273

@wangxiaoxuan273 wangxiaoxuan273 commented Apr 15, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Improve error message when detecting conflicting flags.
Current display:
image

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 #1340

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
@codecov

codecov Bot commented Apr 15, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.56%. Comparing base (fa65f61) to head (30bdbbc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1345      +/-   ##
==========================================
+ Coverage   84.51%   84.56%   +0.05%     
==========================================
  Files         103      103              
  Lines        3655     3668      +13     
==========================================
+ Hits         3089     3102      +13     
  Misses        337      337              
  Partials      229      229              

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

Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go Outdated
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Comment thread cmd/oras/internal/errors/errors.go Outdated
Comment thread cmd/oras/internal/errors/errors.go Outdated
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>

@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

@qweeah qweeah merged commit 67ee100 into oras-project:main Apr 16, 2024
@wangxiaoxuan273 wangxiaoxuan273 deleted the msg branch April 16, 2024 08:14
shizhMSFT added a commit that referenced this pull request Apr 16, 2024
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
…oject#1345)

Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
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.

Need to improve error message when basic auth flags are used with identity token flags

2 participants