chore(deps): update module github.com/pressly/goose/v3 to v3.20.0 - autoclosed #142

Closed
renovate wants to merge 1 commits from renovate/github.com-pressly-goose-v3-3.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
github.com/pressly/goose/v3 require minor v3.15.1 -> v3.20.0

Release Notes

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

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
    details, refer to https://github.com/pressly/goose/pull/507#discussion_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.

v3.18.0

Compare Source

  • Add environment variable substitution for SQL migrations. (#​604)

    • This feature is disabled by default, and can be enabled by adding an annotation to the
      migration file:

      -- +goose ENVSUB ON
      
    • When enabled, goose will attempt to substitute environment variables in the SQL migration
      queries until the end of the file, or until the annotation -- +goose ENVSUB OFF is found. For
      example, if the environment variable REGION is set to us_east_1, the following SQL migration
      will be substituted to SELECT * FROM regions WHERE name = 'us_east_1';

      -- +goose ENVSUB ON
      -- +goose Up
      SELECT * FROM regions WHERE name = '${REGION}';
      
  • Add native Turso support with libsql driver. (#​658)

  • Fixed query for list migrations in YDB (#​684)

v3.17.0

Compare Source

  • Standardised the MIT license (#​647)
  • Improve provider Apply() errors, add ErrNotApplied when attempting to rollback a migration
    that has not been previously applied. (#​660)
  • Add WithDisableGlobalRegistry option to NewProvider to disable the global registry. (#​645)
  • Add -timeout flag to CLI to set the maximum allowed duration for queries to run. Default remains
    no timeout. (#​627)
  • Add optional logging in Provider when WithVerbose option is supplied. (#​668)

⚠️ Potential Breaking Change ⚠️

  • Update goose create to use UTC time instead of local time. (#​242)

v3.16.0

Compare Source

  • Added YDB support. (#​592)
  • Fix sqlserver query to ensure DB version. (#​601)
  • Allow setting / resetting the global Go migration registry. (#​602)
    • SetGlobalMigrations and ResetGlobalMigrations functions have been added.
    • Introduce NewGoMigration for constructing Go migrations.
  • Add initial implementation of goose.NewProvider.

🎉 Read more about this new feature here:

https://pressly.github.io/goose/blog/2023/goose-provider/

The motivation behind the Provider was simple - to reduce global state and make goose easier to
consume as an imported package.

Here's a quick summary:

  • Avoid global state
  • Make Provider safe to use concurrently
  • Unlock (no pun intended) new features, such as database locking
  • Make logging configurable
  • Better error handling with proper return values
  • Double down on Go migrations
  • ... and more!

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 Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/pressly/goose/v3](https://github.com/pressly/goose) | require | minor | `v3.15.1` -> `v3.20.0` | --- ### Release Notes <details> <summary>pressly/goose (github.com/pressly/goose/v3)</summary> ### [`v3.20.0`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3200) [Compare Source](https://github.com/pressly/goose/compare/v3.19.2...v3.20.0) - 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` ([#&#8203;751](https://github.com/pressly/goose/issues/751)): ```go 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 details, refer to https://github.com/pressly/goose/pull/507#discussion_r1266498077 and [#&#8203;751](https://github.com/pressly/goose/issues/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](https://github.com/pressly/goose/blob/d0641b5bfb3bd5d38d95fe7a63d7ddf2d282234d/internal/testing/integration/README.md) for more details. This shouldn't affect users of the goose library. ### [`v3.19.2`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3192---2024-03-13) [Compare Source](https://github.com/pressly/goose/compare/v3.19.1...v3.19.2) - 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`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3191---2024-03-11) [Compare Source](https://github.com/pressly/goose/compare/v3.19.0...v3.19.1) - 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`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3190---2024-03-11) [Compare Source](https://github.com/pressly/goose/compare/v3.18.0...v3.19.0) - Use \[v3.19.1] instead. This was tagged but not released and does not contain release binaries. ### [`v3.18.0`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3180---2024-01-31) [Compare Source](https://github.com/pressly/goose/compare/v3.17.0...v3.18.0) - Add environment variable substitution for SQL migrations. ([#&#8203;604](https://github.com/pressly/goose/issues/604)) - This feature is **disabled by default**, and can be enabled by adding an annotation to the migration file: ```sql -- +goose ENVSUB ON ``` - When enabled, goose will attempt to substitute environment variables in the SQL migration queries until the end of the file, or until the annotation `-- +goose ENVSUB OFF` is found. For example, if the environment variable `REGION` is set to `us_east_1`, the following SQL migration will be substituted to `SELECT * FROM regions WHERE name = 'us_east_1';` ```sql -- +goose ENVSUB ON -- +goose Up SELECT * FROM regions WHERE name = '${REGION}'; ``` - Add native [Turso](https://turso.tech/) support with libsql driver. ([#&#8203;658](https://github.com/pressly/goose/issues/658)) - Fixed query for list migrations in YDB ([#&#8203;684](https://github.com/pressly/goose/issues/684)) ### [`v3.17.0`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3170---2023-12-15) [Compare Source](https://github.com/pressly/goose/compare/v3.16.0...v3.17.0) - Standardised the MIT license ([#&#8203;647](https://github.com/pressly/goose/issues/647)) - Improve provider `Apply()` errors, add `ErrNotApplied` when attempting to rollback a migration that has not been previously applied. ([#&#8203;660](https://github.com/pressly/goose/issues/660)) - Add `WithDisableGlobalRegistry` option to `NewProvider` to disable the global registry. ([#&#8203;645](https://github.com/pressly/goose/issues/645)) - Add `-timeout` flag to CLI to set the maximum allowed duration for queries to run. Default remains no timeout. ([#&#8203;627](https://github.com/pressly/goose/issues/627)) - Add optional logging in `Provider` when `WithVerbose` option is supplied. ([#&#8203;668](https://github.com/pressly/goose/issues/668)) ⚠️ Potential Breaking Change ⚠️ - Update `goose create` to use UTC time instead of local time. ([#&#8203;242](https://github.com/pressly/goose/issues/242)) ### [`v3.16.0`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3160---2023-11-12) [Compare Source](https://github.com/pressly/goose/compare/v3.15.1...v3.16.0) - Added YDB support. ([#&#8203;592](https://github.com/pressly/goose/issues/592)) - Fix sqlserver query to ensure DB version. ([#&#8203;601](https://github.com/pressly/goose/issues/601)) - Allow setting / resetting the global Go migration registry. ([#&#8203;602](https://github.com/pressly/goose/issues/602)) - `SetGlobalMigrations` and `ResetGlobalMigrations` functions have been added. - Introduce `NewGoMigration` for constructing Go migrations. - Add initial implementation of `goose.NewProvider`. 🎉 Read more about this new feature here: https://pressly.github.io/goose/blog/2023/goose-provider/ The motivation behind the Provider was simple - to reduce global state and make goose easier to consume as an imported package. Here's a quick summary: - Avoid global state - Make Provider safe to use concurrently - Unlock (no pun intended) new features, such as database locking - Make logging configurable - Better error handling with proper return values - Double down on Go migrations - ... and more! </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMy4xIiwidXBkYXRlZEluVmVyIjoiMzcuMjYyLjEiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIifQ==-->
renovate added the
dependencies
label 2023-11-12 19:30:57 +00:00
renovate added 1 commit 2023-11-12 19:30:58 +00:00
renovate/artifacts Artifact file update failure
ci/woodpecker/pr/test Pipeline failed Details
7e97442981
chore(deps): update module github.com/pressly/goose/v3 to v3.16.0
Author
Collaborator

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: downloading github.com/uptrace/bun v1.1.16
go: downloading github.com/pressly/goose/v3 v3.20.0
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/sethvargo/go-retry v0.2.4
go: downloading github.com/vmihailenco/msgpack/v5 v5.3.5
go: downloading github.com/mfridman/interpolate v0.0.2
go: gitea.dwysokinski.me/twhelp/dcbot/internal/service tested by
	gitea.dwysokinski.me/twhelp/dcbot/internal/service.test imports
	gitea.dwysokinski.me/twhelp/dcbot/internal/service/internal/mock: cannot find module providing package gitea.dwysokinski.me/twhelp/dcbot/internal/service/internal/mock

### ⚠ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: go.sum ``` Command failed: go get -d -t ./... go: downloading github.com/uptrace/bun v1.1.16 go: downloading github.com/pressly/goose/v3 v3.20.0 go: downloading golang.org/x/text v0.14.0 go: downloading github.com/sethvargo/go-retry v0.2.4 go: downloading github.com/vmihailenco/msgpack/v5 v5.3.5 go: downloading github.com/mfridman/interpolate v0.0.2 go: gitea.dwysokinski.me/twhelp/dcbot/internal/service tested by gitea.dwysokinski.me/twhelp/dcbot/internal/service.test imports gitea.dwysokinski.me/twhelp/dcbot/internal/service/internal/mock: cannot find module providing package gitea.dwysokinski.me/twhelp/dcbot/internal/service/internal/mock ```
renovate force-pushed renovate/github.com-pressly-goose-v3-3.x from 7e97442981 to 9d10298d05 2023-12-03 06:01:10 +00:00 Compare
renovate force-pushed renovate/github.com-pressly-goose-v3-3.x from 9d10298d05 to 53fb78ab1e 2023-12-09 08:58:16 +00:00 Compare
renovate changed title from chore(deps): update module github.com/pressly/goose/v3 to v3.16.0 to chore(deps): update module github.com/pressly/goose/v3 to v3.17.0 2023-12-16 19:31:12 +00:00
renovate force-pushed renovate/github.com-pressly-goose-v3-3.x from 53fb78ab1e to 54e6a772d4 2023-12-16 19:31:15 +00:00 Compare
renovate changed title from chore(deps): update module github.com/pressly/goose/v3 to v3.17.0 to chore(deps): update module github.com/pressly/goose/v3 to v3.18.0 2024-01-31 19:31:21 +00:00
renovate force-pushed renovate/github.com-pressly-goose-v3-3.x from 54e6a772d4 to 7f93e6956c 2024-01-31 19:31:22 +00:00 Compare
renovate changed title from chore(deps): update module github.com/pressly/goose/v3 to v3.18.0 to chore(deps): update module github.com/pressly/goose/v3 to v3.19.1 2024-03-11 19:31:20 +00:00
renovate force-pushed renovate/github.com-pressly-goose-v3-3.x from 7f93e6956c to b53afbabf3 2024-03-11 19:31:21 +00:00 Compare
renovate changed title from chore(deps): update module github.com/pressly/goose/v3 to v3.19.1 to chore(deps): update module github.com/pressly/goose/v3 to v3.19.2 2024-03-13 19:31:30 +00:00
renovate force-pushed renovate/github.com-pressly-goose-v3-3.x from b53afbabf3 to c8704e30d6 2024-03-13 19:31:31 +00:00 Compare
renovate changed title from chore(deps): update module github.com/pressly/goose/v3 to v3.19.2 to chore(deps): update module github.com/pressly/goose/v3 to v3.20.0 2024-04-22 19:30:54 +00:00
renovate force-pushed renovate/github.com-pressly-goose-v3-3.x from c8704e30d6 to 7235c7f15a 2024-04-22 19:30:55 +00:00 Compare
renovate changed title from chore(deps): update module github.com/pressly/goose/v3 to v3.20.0 to chore(deps): update module github.com/pressly/goose/v3 to v3.20.0 - autoclosed 2024-04-30 08:37:02 +00:00
renovate closed this pull request 2024-04-30 08:37:02 +00:00
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/pr/test Pipeline failed

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twhelp/dcbot#142
No description provided.