Skip to content

Commit

Permalink
Merge pull request #205 from rebuy-de/add-migrations
Browse files Browse the repository at this point in the history
add migration task for github.com/pkg/errors
  • Loading branch information
svenwltr authored Jun 14, 2024
2 parents 4a98dad + 806b848 commit 3215369
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions migrations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Migrations

This file contains a list of tasks that are either required or at least
strongly recommended to align projects using this SDK.

## 2024-06-14 Remove all uses of `github.com/pkg/errors`

### Reasoning

[github.com/pkg/errors](https://github.com/pkg/errors)` is deprecated. Since the built-in `errors` package improved a bit in the recent Go versions, we should remove all uses of `github.com/pkg/errors` and replace it with the `errors` package.

### Hints

* Use the pattern `return fmt.Errorf("something happenend with %#v: %w", someID, err)`
* The stack trace feature gets lost. Therefore it is suggested to properly add error messages each time handling errors.

0 comments on commit 3215369

Please sign in to comment.