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

cli-plugins/manager: IsNotFound: don't depend on causer interface #5794

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thaJeztah
Copy link
Member

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Feb 4, 2025
@thaJeztah thaJeztah added this to the 28.0.0 milestone Feb 4, 2025
@thaJeztah thaJeztah self-assigned this Feb 4, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.17%. Comparing base (ce30966) to head (7f8c43e).
Report is 21 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5794      +/-   ##
==========================================
- Coverage   59.44%   59.17%   -0.27%     
==========================================
  Files         347      353       +6     
  Lines       29394    29472      +78     
==========================================
- Hits        17472    17440      -32     
- Misses      10950    11059     +109     
- Partials      972      973       +1     

@thaJeztah thaJeztah requested a review from a team February 4, 2025 17:24
err = e.Cause()
var e *pluginError
if errors.As(err, &e) {
err = e.Unwrap()
Copy link
Member

Choose a reason for hiding this comment

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

Would you be able to add more context to the commit on why this needs to change?
The error could also be wrapped multiple times before it's a notFound type. Are we sure we never wrap the error more than once?

@thaJeztah thaJeztah modified the milestone: 28.0.0 Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/refactor PR's that refactor, or clean-up code status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants