-
Notifications
You must be signed in to change notification settings - Fork 346
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
chore: remove stdlib errors package from lint blocklist #9381
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9381 +/- ##
==========================================
- Coverage 48.60% 48.60% -0.01%
==========================================
Files 1233 1233
Lines 158981 158981
Branches 2778 2777 -1
==========================================
- Hits 77271 77267 -4
- Misses 81536 81540 +4
Partials 174 174
Flags with carried forward coverage won't be shown. Click here to find out 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.
cool. i've wanted to do his, ban pkg/errors, and migrate from errors.Wrap to fmt.Errorf for a while.
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.
can we first migrate off pkg/errors
so we don't have two errors imported in every file?
@NicholasBlaskey: it's an option, sure. I'd rather stuff import both packages than expand usage of |
Letting people use |
Is there anything blocking us from banning |
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 sorry I took awhile to respond this
I'm not against this change, just think getting off pkg/errors
is more important
Not that I'm aware of other than time. grep tells me there's 218 instances of
@NicholasBlaskey Totally hear that and agree. I just wanted to use stdlib |
59f77d6
to
1c16466
Compare
Ticket
Description
We've had the stdlib
errors
package disallowed since at least April of 2020. More recently, we decided to stop usinggithub.com/pkg/errors
, which is a good thing IMO. But we need the stdliberrors
for stuff likeerrors.Is
, so this removes it from the list of disallowed packages.Test Plan
None, it's a linting/CI change.