Skip to content
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

fix(deps): update module github.com/pressly/goose/v3 to v3.21.1 #1080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 22, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/pressly/goose/v3 v3.19.2 -> v3.21.1 age adoption passing confidence

Release Notes

pressly/goose (github.com/pressly/goose/v3)

v3.21.1

Compare Source

  • Add GetVersions method to goose.Provider, returns the current (max db) version and the latest
    (max filesystem) version. (#​756)

  • Clarify GetLatestVersion method MUST return ErrVersionNotFound if no latest migration is
    found. Previously it was returning a -1 and nil error, which was inconsistent with the rest of the
    API surface.

  • Add GetLatestVersion implementations to all existing dialects. This is an optimization to avoid
    loading all migrations when only the latest version is needed. This uses the max function in SQL
    to get the latest version_id irrespective of the order of applied migrations.

    • Refactor existing portions of the code to use the new GetLatestVersion method.

v3.21.0

Compare Source

  • Add GetVersions method to goose.Provider, returns the current (max db) version and the latest
    (max filesystem) version. (#​756)

  • Clarify GetLatestVersion method MUST return ErrVersionNotFound if no latest migration is
    found. Previously it was returning a -1 and nil error, which was inconsistent with the rest of the
    API surface.

  • Add GetLatestVersion implementations to all existing dialects. This is an optimization to avoid
    loading all migrations when only the latest version is needed. This uses the max function in SQL
    to get the latest version_id irrespective of the order of applied migrations.

    • Refactor existing portions of the code to use the new GetLatestVersion method.

v3.20.0

Compare Source

  • Expand the Store interface by adding a GetLatestVersion method and make the interface public.
  • Add a (non-blocking) method to check if there are pending migrations to the goose.Provider
    (#​751):
func (p *Provider) HasPending(context.Context) (bool, error) {}

The underlying implementation does not respect the SessionLocker (if one is enabled) and can
be used to check for pending migrations without blocking or being blocked by other operations.

  • The methods .Up, .UpByOne, and .UpTo from goose.Provider will invoke .HasPending before
    acquiring a lock with SessionLocker (if enabled). This addresses an edge case in
    Kubernetes-style deployments where newer pods with long-running migrations prevent older pods -
    which have all known migrations applied - from starting up due to an advisory lock. For more
    detailhttps://github.com/pressly/goose/pull/507#discussion_r1266498077_r1266498077 and #​751.
  • Move integration tests to ./internal/testing and make it a separate Go module. This will allow
    us to have a cleaner top-level go.mod file and avoid imports unrelated to the goose project. See
    integration/README.md
    for more details. This shouldn't affect users of the goose library.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from abd31c3 to 64ab0e5 Compare April 24, 2024 04:57
@renovate renovate bot changed the title fix(deps): update module github.com/pressly/goose/v3 to v3.20.0 fix(deps): update module github.com/pressly/goose/v3 to v3.21.1 Jun 19, 2024
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 64ab0e5 to c4156f9 Compare June 19, 2024 16:51
Copy link
Contributor Author

renovate bot commented Jun 19, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 -> v0.0.0-20240325151524-a685a6edb6d8

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.

None yet

0 participants