8000 feat: ignore Go 1.20 errors.Join() sig by default by jacalvo · Pull Request #37 · tomarrell/wrapcheck · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: ignore Go 1.20 errors.Join() sig by default #37

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

Merged

Conversation

jacalvo
Copy link
Contributor
@jacalvo jacalvo commented Feb 4, 2023

After upgrading to Go 1.20 and using the new errors.Join() from the standard library, there is a false positive from wrapcheck saying that error returned from external package is unwrapped, when errors.Join() is now supposed to be an idiomatic way to wrap multiple errors from external packages.

More info in the Go 1.20 release notes:

https://tip.golang.org/doc/go1.20#errors

After upgrading to Go 1.20 and using the new `errors.Join()` from the
standard library, there is a false positive from `wrapcheck` saying that
error returned from external package is unwrapped, when `errors.Join()`
is now supposed to be an idiomatic way to wrap multiple errors from
external packages.

More info in the Go 1.20 release notes:

https://tip.golang.org/doc/go1.20#errors
@tomarrell
Copy link
Owner

LGTM, thanks!

@tomarrell tomarrell merged commit 142a2ce into tomarrell:master Feb 4, 2023
@jacalvo jacalvo deleted the feat/ignore-go-1.20-errors-join branch February 4, 2023 20:45
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.

2 participants
0