Skip to content

Replace pkg/errors with fmt.Errorf - #166

Merged
trishankatdatadog merged 1 commit into
theupdateframework:masterfrom
tamird:pkg-errors
Oct 8, 2021
Merged

trishankatdatadog merged 1 commit into
theupdateframework:masterfrom
tamird:pkg-errors

Conversation

@tamird

@tamird tamird commented Oct 8, 2021

Copy link
Copy Markdown
Contributor

Removes the dependency on github.com/pkg/errors.

Error wrapping is part of the standard library since go1.13.

https://go.dev/blog/go1.13-errors

Removes the dependency on github.com/pkg/errors.

Error wrapping is part of the standard library since go1.13.

https://go.dev/blog/go1.13-errors

@asraa asraa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hah, sorry -- that's my fault. thanks!

@hosseinsia
hosseinsia self-requested a review October 8, 2021 19:52

@hosseinsia hosseinsia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice catch! --slipped through my eyes, sorry!
Thanks!

@coveralls

coveralls commented Oct 8, 2021 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 1321234214

  • 0 of 3 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 67.6%

Changes Missing Coverage Covered Lines Changed/Added Lines %
data/types.go 0 1 0.0%
pkg/keys/keys.go 0 2 0.0%
Totals Coverage Status
Change from base Build 1312286690: 0.0%
Covered Lines: 1932
Relevant Lines: 2858

💛 - Coveralls

@tamird

tamird commented Oct 8, 2021

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews! Can someone hit the merge for me please?

@trishankatdatadog
trishankatdatadog merged commit d74a4b4 into theupdateframework:master Oct 8, 2021
@tamird
tamird deleted the pkg-errors branch October 8, 2021 21:45
mnm678 pushed a commit to mnm678/go-tuf that referenced this pull request Oct 21, 2021
Removes the dependency on github.com/pkg/errors.

Error wrapping is part of the standard library since go1.13.

https://go.dev/blog/go1.13-errors
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.

5 participants