cli
cli copied to clipboard
Switch from github.com/pkg/errors to %w-style wrap
The github.com/pkg/errors is mostly obsoleted since Go 1.13 introduced %w-style error wrapping. It is also not maintained and is now archived by the owner.
Fixes: #3618
- What I did
- How I did it
Mostly by using https://github.com/AkihiroSuda/go-wrap-to-percent-w tool. In some cases, by hand.
- How to verify it
I hope CI is adequate.
- Description for the changelog
Switch from github.com/pkg/errors to %w-style error wrapping.
- A picture of a cute animal (not mandatory but encouraged)
Codecov Report
Attention: Patch coverage is 33.67876% with 256 lines in your changes missing coverage. Please review.
Project coverage is 60.54%. Comparing base (
305985c) to head (8eb1567).
Additional details and impacted files
@@ Coverage Diff @@
## master #5525 +/- ##
==========================================
- Coverage 60.58% 60.54% -0.05%
==========================================
Files 345 345
Lines 23456 23465 +9
==========================================
- Hits 14211 14207 -4
- Misses 8273 8284 +11
- Partials 972 974 +2