Skip to content
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

fix: Improve error message on oras copy.go with non-existent tags #852

Conversation

khanjasir90
Copy link
Contributor

What this PR does / why we need it:
Improves Error message on oras copy.go with non-existent tags
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 #791

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?

@khanjasir90
Copy link
Contributor Author

@shizhMSFT @qweeah could u pls review it!

@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2023

Codecov Report

Merging #852 (110fa73) into main (d93544d) will not change coverage.
The diff coverage is n/a.

📣 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

@@           Coverage Diff           @@
##             main     #852   +/-   ##
=======================================
  Coverage   66.89%   66.89%           
=======================================
  Files          21       21           
  Lines         879      879           
=======================================
  Hits          588      588           
  Misses        245      245           
  Partials       46       46           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

cmd/oras/cp.go Outdated Show resolved Hide resolved
cmd/oras/cp.go Outdated Show resolved Hide resolved
@khanjasir90
Copy link
Contributor Author

@qweeah and @shizhMSFT I have made necessary give changes :)

Copy link
Contributor

@qweeah qweeah left a 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: khanjasir90 <khanmohdjasir@gmail.com>
Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com>
@shizhMSFT shizhMSFT force-pushed the khanjasir90/improve-error-message-with-non-existent-tags branch from 110fa73 to f1c568d Compare March 3, 2023 08:09
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@shizhMSFT shizhMSFT merged commit fced2ec into oras-project:main Mar 3, 2023
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.

Improve error message on oras copy with non-existent tags
4 participants