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

feat(routes): better error message in case of missing annotations #1150

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

peusebiu
Copy link
Collaborator

@peusebiu peusebiu commented Jan 30, 2023

putting this info into error detail would be ideal, but skopeo doesn't print them, so overwrite the error message.

Signed-off-by: Petu Eusebiu peusebiu@cisco.com

What type of PR is this?

Which issue does this PR fix:
#1145

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #1150 (863d057) into main (863d057) will not change coverage.
The diff coverage is n/a.

❗ Current head 863d057 differs from pull request most recent head b6c6acd. Consider uploading reports for the commit b6c6acd to get more accurate results

@@           Coverage Diff           @@
##             main    #1150   +/-   ##
=======================================
  Coverage   89.60%   89.60%           
=======================================
  Files          90       90           
  Lines       18434    18434           
=======================================
  Hits        16517    16517           
  Misses       1459     1459           
  Partials      458      458           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

putting this info into error detail would be ideal, but skopeo
doesn't print them, so overwrite the error message.

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
@rchincha
Copy link
Contributor

Let's look at the dist spec and make sure we are not doing something way off.

Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

@rchincha
Copy link
Contributor

FYI, only the codes matter, rest can be bespoke.
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#error-codes

@rchincha rchincha merged commit 17a554b into project-zot:main Mar 17, 2023
andaaron added a commit to andaaron/zot that referenced this pull request Mar 20, 2023
…fter `go mod tidy`

This is to avoid situations such as project-zot#1150
where an indirect dependency became direct without a corresponding go.mod change

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
andaaron added a commit to andaaron/zot that referenced this pull request Mar 21, 2023
…fter `go mod tidy`

This is to avoid situations such as project-zot#1150
where an indirect dependency became direct without a corresponding go.mod change

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
rchincha pushed a commit that referenced this pull request Mar 21, 2023
…fter `go mod tidy` (#1287)

This is to avoid situations such as #1150
where an indirect dependency became direct without a corresponding go.mod change

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
@andaaron andaaron added this to the v2.0.0 milestone Mar 22, 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.

None yet

4 participants