chore: improving error log for oras push and oras attach when the annotation file is invalid#1026
Conversation
oras push and oras attach when the annotation file is invalidoras push and oras attach when the annotation file is invalid
|
@1Shubham7 Can you sign the commits via following https://github.com/oras-project/oras/pull/1026/checks?check_run_id=15187109754 |
|
figured it out, it should be fine now. @qweeah can you check it out now. |
Signed-off-by: Shubham Singh <shubhammahar1306@gmail.com>
Signed-off-by: Shubham Singh <shubhammahar1306@gmail.com>
Signed-off-by: Sajay Antony <sajaya@microsoft.com> Signed-off-by: Shubham Singh <shubhammahar1306@gmail.com>
Signed-off-by: Shubham Singh <shubhammahar1306@gmail.com>
|
@qweeah Please have a look at it now. |
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #1026 +/- ##
==========================================
+ Coverage 81.21% 81.29% +0.07%
==========================================
Files 57 57
Lines 2907 2908 +1
==========================================
+ Hits 2361 2364 +3
+ Misses 373 371 -2
Partials 173 173
|
fix: move stale into .github/workflows (oras-project#1031)
Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>
Co-authored-by: Billy Zha <qweeah@gmail.com> Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>
|
Maintainers, I am seeing another issue, some errors end with a period (".") while some don't. I had a discussion with @qweeah . Making commits to deal with this. |
Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>
Co-authored-by: Billy Zha <qweeah@gmail.com> Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>
|
it has multiple errors @qweeah . changing it. |
Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>
Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>
|
@qweeah please have a look now. I think its completed. |
|
@toddysm Can you help review and confirm the UX in the screen shot? Thanks cc @FeynmanZhou |
oras push and oras attach when the annotation file is invalidoras push and oras attach when the annotation file is invalid
… annotation file is invalid (oras-project#1026) Signed-off-by: Shubham Singh <shubhammahar1306@gmail.com>



What this PR does / why we need it:
If a malformed JSON file is provided via --annotation-file flag, oras used to output
Error: json: cannot unmarshal string into Go value of type map[string]stringPR to improve this to
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 #1021
screen shot of the final version

Please check the following list: