hashicorp / go-multierror

A Go (golang) package for representing a list of errors as a single error.
Mozilla Public License 2.0
2.28k stars 123 forks source link

replace hashicorp/errwrap with go1.13 native error wrapping #60

Open thaJeztah opened 2 years ago

thaJeztah commented 2 years ago

The errwrap.Wrapf() function was deprecated in favor of native go 1.13 error wrapping in github.com/hashicorp/errwrap v1.1.0 (https://github.com/hashicorp/errwrap/pull/9).

This updates the Prefix() function to use native error wrapping, which removes the dependency on github.com/hashicorp/errwrap.

hashicorp-cla commented 2 years ago

CLA assistant check
All committers have signed the CLA.

thaJeztah commented 2 years ago

@dnephin @mitchellh PTAL 🤗 (noticed this was deprecated when updating dependencies (https://github.com/moby/moby/pull/43308), so thought I could as well try to get rid of that dependency altogether 😅)

lovromazgon commented 2 years ago

@mitchellh @mwhooker are there any plans to merge this PR?

displague commented 5 months ago

I found this issue while considering further adoption of this package vs the upstream support in Go 1.20 for wrapper errors.

See