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

Update errors coding style #7485

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

Conversation

SuperQ
Copy link
Contributor

@SuperQ SuperQ commented Jun 25, 2024

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

The github.com/pkg/errors package is deprecated and archived. Update the style guide to follow Go standard style for error type wrapping.

Verification

@SuperQ
Copy link
Contributor Author

SuperQ commented Jun 25, 2024

👓 @bwplotka

MichaHoffmann
MichaHoffmann previously approved these changes Jun 25, 2024
Copy link
Contributor

@MichaHoffmann MichaHoffmann left a comment

Choose a reason for hiding this comment

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

lgtm

The `github.com/pkg/errors` package is deprecated and archived. Update
the style guide to follow Go standard style for `error` type wrapping.

Signed-off-by: SuperQ <[email protected]>
@saswatamcode
Copy link
Member

So I think we discussed this previously at some point in #5176 and came up with a custom error package in #5239 which we then moved to https://github.com/efficientgo/core/tree/main/errors.

I did some work to port the promql-engine to this new error package in thanos-io/promql-engine#134 and there was some work to do the same for Thanos in #5382

Do you think we should continue this effort or maybe rely on default Go semantics?
cc: @thanos-io/thanos-maintainers 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants