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

Update module github.com/pressly/goose/v3 to v3.22.1 #79

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 10, 2023

This PR contains the following updates:

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

Release Notes

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

v3.22.1

Compare Source

  • Upgrade dependencies and rebuild binaries with latest Go version (go1.23.1)

v3.22.0

Compare Source

  • Minimum Go version is now 1.21
  • Add Unwrap to PartialError (#​815)
  • Allow flags anywhere on the CLI (#​814)

goose uses the default Go flag parsing library, which means flags must be defined before the
first positional argument. We've updated this behavior to allow flags to be defined anywhere. For
more details, see blog post.

  • Update WithDisableGlobalRegistry behavior (#​783). When set, this will ignore globally-registered
    migrationse entirely instead of the previous behavior of raising an error. Specifically, the
    following check is removed:
if len(global) > 0 {
	return nil, errors.New("global registry disabled, but provider has registered go migrations")
}

This enables creating isolated goose provider(s) in legacy environments where global migrations may
be registered. Without updating this behavior, it would be impossible to use
WithDisableGlobalRegistry in combination with provider-scoped WithGoMigrations.

  • Postgres, updated schema to use identity instead of serial and make tstamp not nullable (#​556)
- id serial NOT NULL,
+ id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,

- tstamp timestamp NULL default now(),
+ tstamp timestamp NOT NULL DEFAULT now()
  • MySQL, updated schema to not use SERIAL alias (#​816)
- id serial NOT NULL,
+ id bigint(20) unsigned NOT NULL AUTO_INCREMENT,

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

  • Retracted. Broken release, please use v3.21.1 instead.

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.

v3.19.2

Compare Source

  • Remove duckdb support. The driver uses Cgo and we've decided to remove it until we can find a
    better solution. If you were using duckdb with goose, please let us know by opening an issue.

v3.19.1

Compare Source

  • Fix selecting dialect for redshift
  • Add GOOSE_MIGRATION_DIR documentation
  • Bump github.com/opencontainers/runc to v1.1.12 (security fix)
  • Update CI tests for go1.22
  • Make goose annotations case-insensitive
    • All -- +goose annotations are now case-insensitive. This means that -- +goose Up and -- +goose up are now equivalent. This change was made to improve the user experience and to make the
      annotations more consistent.

v3.19.0

Compare Source

  • Use [v3.19.1] instead. This was tagged but not released and does not contain release binaries.

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 is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner October 10, 2023 17:27
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 6 times, most recently from 7b81428 to 9d6d184 Compare October 19, 2023 21:13
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 2 times, most recently from 5a56aff to 97cb2cf Compare October 20, 2023 18:54
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 4 times, most recently from b11551c to 0e20c94 Compare November 3, 2023 21:04
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.15.1 Update module github.com/pressly/goose/v3 to v3.16.0 Nov 12, 2023
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 0e20c94 to 03f136e Compare November 12, 2023 19:24
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 03f136e to 6175f5b Compare November 20, 2023 20:14
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 6175f5b to 3b969d3 Compare December 12, 2023 21:10
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.16.0 Update module github.com/pressly/goose/v3 to v3.17.0 Dec 16, 2023
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 3b969d3 to f349548 Compare December 16, 2023 07:44
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from f349548 to 2573472 Compare January 5, 2024 18:49
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 2573472 to a39b14b Compare January 19, 2024 17:09
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 2 times, most recently from b2529d8 to a336976 Compare January 31, 2024 16:39
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.17.0 Update module github.com/pressly/goose/v3 to v3.18.0 Jan 31, 2024
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 4 times, most recently from 0a7fafe to 33cb80b Compare February 3, 2024 00:22
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 2 times, most recently from c7bd62a to c357fe9 Compare February 12, 2024 22:59
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.18.0 Update module github.com/pressly/goose/v3 to v3.19.0 Mar 11, 2024
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from c357fe9 to 723307a Compare March 11, 2024 14:29
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.19.0 Update module github.com/pressly/goose/v3 to v3.19.1 Mar 11, 2024
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 723307a to e85229c Compare March 11, 2024 16:31
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.19.1 Update module github.com/pressly/goose/v3 to v3.19.2 Mar 13, 2024
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from e85229c to 80943a6 Compare March 13, 2024 14:48
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 3 times, most recently from ed4f692 to a09549c Compare March 26, 2024 17:28
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 3 times, most recently from 4028566 to f5e4894 Compare April 16, 2024 11:34
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.19.2 Update module github.com/pressly/goose/v3 to v3.20.0 Apr 22, 2024
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from f5e4894 to 2af680b Compare April 22, 2024 14:16
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 2af680b to 9183752 Compare May 9, 2024 00:57
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch 2 times, most recently from 0a2452e to e05183d Compare May 28, 2024 15:35
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from e05183d to 56a886a Compare June 19, 2024 13:30
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.20.0 Update module github.com/pressly/goose/v3 to v3.21.0 Jun 19, 2024
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 56a886a to 61ac8f2 Compare June 19, 2024 18:40
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.21.0 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 2 times, most recently from fb0a86c to 458108d Compare September 3, 2024 14:36
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.21.1 Update module github.com/pressly/goose/v3 to v3.22.0 Sep 3, 2024
Copy link
Contributor Author

renovate bot commented Sep 3, 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):

  • 7 additional dependencies were updated

Details:

Package Change
github.com/sethvargo/go-retry v0.2.4 -> v0.3.0
golang.org/x/sync v0.7.0 -> v0.8.0
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 -> v0.0.0-20240606120523-5a60cdf6a761
golang.org/x/crypto v0.23.0 -> v0.27.0
golang.org/x/net v0.25.0 -> v0.28.0
golang.org/x/sys v0.20.0 -> v0.25.0
golang.org/x/text v0.15.0 -> v0.18.0

@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.22.0 Update module github.com/pressly/goose/v3 to v3.22.1 Sep 17, 2024
@renovate renovate bot force-pushed the renovate/github.com-pressly-goose-v3-3.x branch from 458108d to 1b3122a Compare September 17, 2024 17:31
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.

0 participants