-
Notifications
You must be signed in to change notification settings - Fork 379
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
Switch to golang native error wrapping #1607
Conversation
ca69640
to
1fd502e
Compare
Thanks! Ref. containers/podman#14784 for an earlier discussion. Notably this is hard-blocked at least,. on containers/common#1077 due to c/common/pkg/retry . |
(Note to self: I didn’t actually read the patch.) |
Just a friendly ping. I think this will be needed for final vendor and to make everything work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Um, is there anything that is currently broken and actually needs this PR to fix? |
@mtrmac As of now don't think i have hit anything but today i hit a scenario where error generated from |
@flouthoc That… is vague enough to make me specifically nervous. Is the cause understood, and is it known whether it applies to the situation before applying this PR / after applying this PR / neither? |
@mtrmac Sorry for confusion please ignore above comments since root cause of my issue was only on dependency between
Yes cause of my issue i have shared here: containers/storage#1285 (comment) but just sharing it again in detail here libimage had a check like
Again no |
@flouthoc Thanks very much for clarifying this. That’s the migration ordering discussed in containers/podman#14784 , and here about c/common needing to be updated last. The c/common change has now been merged, so we should be fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good overall.
I’m sorry, I’m not thinking clearly today. That’s true for the c/image vs. {c/common, Buildah, Podman} interactions, but not for c/storage vs. c/image, where c/storage being migrated first might have broken something similarly — but we are fine because #1588 has updated the consumers in c/image already. Given that, I’d weakly prefer for outstanding #1381 to be merged first — because this PR is the easier rebase, and because merging the feature one first would ensure that, at least in the short term, we don’t reintroduce another user. But that’s a weak preference and certainly not worth blocking this PR for a long time, if #1381 did not end up merged quickly. |
`github.com/pkg/errors` is deprecated since quite some time so we now use the native error wrapping for more idiomatic golang. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks again!
github.com/pkg/errors
is deprecated since quite some time so we now use the native error wrapping for more idiomatic golang.@containers/image-maintainers PTAL