-
Notifications
You must be signed in to change notification settings - Fork 547
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
Remove dependency on deprecated github.com/pkg/errors #1887
Conversation
cc: @imjasonh I started cleanup pkg/errors dependency, but still draft. |
db5ccc0
to
ea6d648
Compare
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
ea6d648
to
7025f69
Compare
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
This pull request is a huge change. Therefore, split the commit by the package one by one, as another contributor's PR may conflict with the main branch after merging this pull request. |
@imjasonh Great, let's remove deprecated packages from the Go community world :P (I think it will be long-term lol |
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
@imjasonh Well, PTAL. |
Oh please oh please oh please. If you do this I will be forever in your debt. 🙏 |
https://github.com/sigstore/cosign/runs/6458613293?check_suite_focus=true#step:12:286 looks like a bad I've noticed when doing this in other repos that sometimes you'll have a |
@imjasonh Ah, mistake, will fix asap.
Yeah, it seems to pkg/errors bug(?), I'm surprised.
lol, will do. |
@@ -433,7 +433,7 @@ func ValidatePolicySignaturesForAuthority(ctx context.Context, ref name.Referenc | |||
// https://github.com/sigstore/cosign/issues/1652 | |||
sps, err := valid(ctx, ref, rekorClient, authority.Key.PublicKeys, remoteOpts...) | |||
if err != nil { | |||
return nil, errors.Wrap(err, fmt.Sprintf("failed to validate public keys with authority %s for %s", name, ref.Name())) | |||
return nil, fmt.Errorf(fmt.Sprintf("failed to validate public keys with authority %s for %s: %w", name, ref.Name()), err) |
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.
will fix too.
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
I found the root cause that |
Codecov Report
@@ Coverage Diff @@
## main #1887 +/- ##
==========================================
+ Coverage 33.35% 33.36% +0.01%
==========================================
Files 146 146
Lines 9370 9372 +2
==========================================
+ Hits 3125 3127 +2
Misses 5874 5874
Partials 371 371
Continue to review full report at Codecov.
|
Summary
Remove dependency on deprecated github.com/pkg/errors.
Ticket Link
Update: #1880
Release Note
???