Skip to content

Conversation

@codysoyland
Copy link
Member

Signed-off-by: Cody Soyland [email protected]

Summary

This removes the deprecated github.com/pkg/errors package, which has been replaced by the standard library. This work was previously done in #1887, but several invocations have been gradually added since then.

Fixes #1880 again :)

Release Note

Documentation

@codecov
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.

Project coverage is 36.38%. Comparing base (2ef6022) to head (c9856ef).
Report is 245 commits behind head on main.

Files with missing lines Patch % Lines
internal/pkg/cosign/tsa/client/client.go 0.00% 3 Missing ⚠️
cmd/cosign/cli/attest/attest_blob.go 0.00% 1 Missing ⚠️
internal/pkg/cosign/tsa/mock/mock_tsa_client.go 0.00% 1 Missing ⚠️
internal/pkg/cosign/tsa/signer.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3956      +/-   ##
==========================================
- Coverage   40.10%   36.38%   -3.73%     
==========================================
  Files         155      209      +54     
  Lines       10044    13383    +3339     
==========================================
+ Hits         4028     4869     +841     
- Misses       5530     7889    +2359     
- Partials      486      625     +139     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Hayden-IO Hayden-IO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Hayden-IO Hayden-IO merged commit 2e3d296 into sigstore:main Dec 10, 2024
23 checks passed
func idToken(s string) (string, error) {
// If this is a valid raw token or is empty, just return it
if _, err := jose.ParseSigned(s); err == nil || s == "" {
if _, err := jwt.ParseSigned(s); err == nil || s == "" {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to mention it in the PR description, but the reason I replaced go.step.sm/crypto/jose with github.com/go-jose/go-jose/v3/jwt is that the former is a wrapper around the latter (that we don't benefit from) and includes references to the github.com/pkg/errors package.

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.

proposal: remove pkg/errors dependency

2 participants