prometheus-operator: Get rid of `github.com/pkg/errors` dependency
https://github.com/pkg/errors has been archived and is no longer maintained.
At least 2 options are available:
- ~~Use a drop-in replacement like https://github.com/emperror/errors.~~
 
-  Use the 
errorspackage from the standard Go library. -  Add a 
depguardrule in the golang-cilint configuration to prevent future use ofgithub.com/pkg/errors. 
About this issue
- Original URL
 - State: closed
 - Created 2 years ago
 - Reactions: 1
 - Comments: 15 (15 by maintainers)
 
Personally I’d be fine with using the standard
errorspackage since the code doesn’t rely on advanced capabilities ofgithub.com/pkg/errorssuch as stack trace logging.We could add a linter to catch all occurrences at once