all: remove dependency on deprecated github.com/pkg/errors#834
all: remove dependency on deprecated github.com/pkg/errors#834bobcallaway merged 5 commits intosigstore:mainfrom
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>
| 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.
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.
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 |
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? 🤣 |
Summary
all: remove dependency on deprecated github.com/pkg/errors
Ticket Link
Update: sigstore/cosign#1880