Skip to content

Conversation

@skitt
Copy link
Contributor

@skitt skitt commented May 26, 2025

github.com/pkg/errors is archived and unmaintained; this replaces that as follows:

  • instead of extracting the cause for os.IsNotExist, use errors.Is directly (which unwraps errors itself)
  • wrap errors using fmt.Errorf (wrapped errors using pkg/errors add the error message after a colon, so this changes the format to match)
  • errors.Wrapf is replaced with fmt.Errorf

skitt and others added 2 commits May 26, 2025 12:55
github.com/pkg/errors is archived and unmaintained; this replaces that
as follows:
* instead of extracting the cause for os.IsNotExist, use errors.Is
  directly (which unwraps errors itself)
* wrap errors using fmt.Errorf (wrapped errors using pkg/errors add
  the error message after a colon, so this changes the format to
  match)
* errors.Wrapf is replaced with fmt.Errorf

Signed-off-by: Stephen Kitt <[email protected]>
@dims dims merged commit 85d18c6 into google:master Jun 5, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants