-
Notifications
You must be signed in to change notification settings - Fork 38
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
cmd, pkg, schema: stop using github.com/pkg/errors. #99
Conversation
3e9de95
to
1503b67
Compare
a5b10d5
to
e86a265
Compare
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.
One question about the Golang version bump.
@@ -17,9 +17,9 @@ | |||
package cdi | |||
|
|||
import ( | |||
"errors" |
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.
Should we use fmt.Errorf
over errors.New
for all errors even if no formatting is performed?
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.
Would there be some real benefit to it ? This errors
is golang stdlib (so always present/available by the toolchain) and we anyway depend on it because we use errors.Is()
elsewhere in the code.
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.
Was more of a general question. Not a blocker.
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.
a related comment is to make the cdi errors hierarchy so that, e.g., goerr113
linter is happy. In particular,
"error
should not be created dynamically from scratch but by the wrapping the static (package-level) error."
$ golangci-lint run --disable-all -E goerr113
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.
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.
e86a265
to
ab4d52f
Compare
Get rid of github.com/pkg/errors dependency. Signed-off-by: Krisztian Litkey <[email protected]>
ab4d52f
to
2ce182d
Compare
2ce182d
to
dd57a82
Compare
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
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 @klihub. After dropping the golang version bump this looks good.
Get rid of
github.com/pkg/errors
dependency.