-
-
Notifications
You must be signed in to change notification settings - Fork 866
Remove use of deprecated package github.com/pkg/errors #9216
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
Conversation
Looks like there's an error in the You can run this locally to reproduce:
I verified the error doesn't happen on |
Signed-off-by: Tom Godkin <tomgodkin@pm.me>
@taylorsilva thanks! Think I've fixed that now. |
@taylorsilva I did a quick scan and found a bunch more instances where |
Yeah there's a bunch of those. I'm fine with adding them to this PR, go for it 🙂 |
Signed-off-by: Tom Godkin <tomgodkin@pm.me>
@taylorsilva I think I found all the obvious ones |
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 - Thanks for cleaning up that cruft!
Changes proposed by this PR
No functional change. This simply removes the
github.com/pkg/errors
package in favour oferrors
. The former has been deprecated for a while.There's a small bonus change - a demonstration of using the new
maps
package to to simplify some code. There are probably other places in the code base where use ofmaps
orslices
would simplify things.Notes to reviewer
N/A