-
Notifications
You must be signed in to change notification settings - Fork 164
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
all: remove dependency on deprecated github.com/pkg/errors #834
Conversation
$ pkgerrors -fix ./... $ goimports -w . Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
cc: @imjasonh |
ah, still there are pkg/errors. |
It looks like I think if you delete all those pkg/errors imports and |
@imjasonh done |
de0f2c1
to
c22b929
Compare
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Yes can, but implements next time :D |
We should also be able to |
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
@@ -52,7 +52,7 @@ func (rt BaseRekordType) UnmarshalEntry(pe models.ProposedEntry) (types.EntryImp | |||
|
|||
rekord, ok := pe.(*models.Hashedrekord) | |||
if !ok { | |||
return nil, errors.New(fmt.Sprintf("%s, %s", "cannot unmarshal non-hashed Rekord types", pe.Kind())) | |||
return nil, fmt.Errorf("%s, %s", "cannot unmarshal non-hashed Rekord types", pe.Kind()) |
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.
why not
return nil, fmt.Errorf("%s, %s", "cannot unmarshal non-hashed Rekord types", pe.Kind()) | |
return nil, fmt.Errorf("cannot unmarshal non-hashed Rekord types: %s", pe.Kind()) |
?
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.
ah, my linter still develop phase(I wrote it for sigstore), will fix by hand.
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
@cpanato PTAL |
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.
thanks!
LGTM
Codecov Report
@@ Coverage Diff @@
## main #834 +/- ##
==========================================
- Coverage 46.66% 46.62% -0.04%
==========================================
Files 60 60
Lines 5094 5094
==========================================
- Hits 2377 2375 -2
- Misses 2443 2445 +2
Partials 274 274
Continue to review full report at Codecov.
|
@bobcallaway can approve/merge when having some free cycles? thanks |
@cpanato can't you see im busy lounging? 🤣 |
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.
lgtm
Summary
all: remove dependency on deprecated github.com/pkg/errors
Ticket Link
Update: sigstore/cosign#1880