freerware / work

A compact library for tracking and committing changes to your entities.
Apache License 2.0
59 stars 2 forks source link

Update dependencies for V4 module. #79

Closed fr33r closed 2 years ago

fr33r commented 2 years ago

Description

Performs a high-level, widespread upgrade of dependencies for v4 module. Utilized the following strategy for the upgrades:

$ go get -t -u ./...

The gomock upgrade required making changes to existing Do calls to have an anonymous function provided with matching signature of method being mocked.

Additionally, it appears that gomock automatically registers a cleanup action that calls Finish, so I removed that explicit call from the test suites:

If you are using a Go version of 1.14+, a mockgen version of 1.5.0+, and are passing a *testing.T into gomock.NewController(t) you no longer need to call ctrl.Finish() explicitly. It will be called for you automatically from a self registered Cleanup function.

Rationale

Now that the minimum version of the v4 module has been moved up to 1.18, many of it's dependencies can now be appropriately upgraded to match.

NOTE: there are additional dependency upgrades planned - some of the dependencies can be changed to leverage modules they've introduced instead of using +incompatible.

Suggested Version

v4.0.0-beta.6

Example Usage

N/A

codecov[bot] commented 2 years ago

Codecov Report

Base: 98.71% // Head: 98.71% // No change to project coverage :thumbsup:

Coverage data is based on head (93f83c7) compared to base (1954944). Patch has no changes to coverable lines.

:exclamation: Current head 93f83c7 differs from pull request most recent head 20573fc. Consider uploading reports for the commit 20573fc to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #79 +/- ## ======================================= Coverage 98.71% 98.71% ======================================= Files 14 14 Lines 1399 1399 ======================================= Hits 1381 1381 Misses 14 14 Partials 4 4 ``` | Flag | Coverage Δ | | |---|---|---| | v4 | `98.70% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=freerware#carryforward-flags-in-the-pull-request-comment) to find out more. Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=freerware). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=freerware)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.