Fix regression that prevented registering Go migrations that didn't have the corresponding files
available in the filesystem. (#588)
If Go migrations have been registered globally, but there are no .go files in the filesystem,
always include them.
If Go migrations have been registered, and there are .go files in the filesystem, only
include those migrations. This was the original motivation behind #553.
If there are .go files in the filesystem but not registered, raise an error. This is to
prevent accidentally adding valid looking Go migration files without explicitly registering
them.
Fix regression that prevented registering Go migrations that didn't have the corresponding files
available in the filesystem. (#588)
If Go migrations have been registered globally, but there are no .go files in the filesystem,
always include them.
If Go migrations have been registered, and there are .go files in the filesystem, only
include those migrations. This was the original motivation behind #553.
If there are .go files in the filesystem but not registered, raise an error. This is to
prevent accidentally adding valid looking Go migration files without explicitly registering
them.
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [github.com/pressly/goose/v3](https://github.com/pressly/goose) from 3.15.0 to 3.15.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pressly/goose/releases">github.com/pressly/goose/v3's releases</a>.</em></p>
<blockquote>
<h2>v3.15.1</h2>
<ul>
<li>Fix regression that prevented registering Go migrations that didn't have the corresponding files
available in the filesystem. (<a href="https://github.com/pressly/goose/issues/588">#588</a>)
<ul>
<li>If Go migrations have been registered globally, but there are no .go files in the filesystem,
<strong>always include</strong> them.</li>
<li>If Go migrations have been registered, and there are .go files in the filesystem, <strong>only
include</strong> those migrations. This was the original motivation behind <a href="https://github.com/pressly/goose/issues/553">#553</a>.</li>
<li>If there are .go files in the filesystem but not registered, <strong>raise an error</strong>. This is to
prevent accidentally adding valid looking Go migration files without explicitly registering
them.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pressly/goose/blob/master/CHANGELOG.md">github.com/pressly/goose/v3's changelog</a>.</em></p>
<blockquote>
<h2>[v3.15.1] - 2023-10-10</h2>
<ul>
<li>Fix regression that prevented registering Go migrations that didn't have the corresponding files
available in the filesystem. (<a href="https://github.com/pressly/goose/issues/588">#588</a>)
<ul>
<li>If Go migrations have been registered globally, but there are no .go files in the filesystem,
<strong>always include</strong> them.</li>
<li>If Go migrations have been registered, and there are .go files in the filesystem, <strong>only
include</strong> those migrations. This was the original motivation behind <a href="https://github.com/pressly/goose/issues/553">#553</a>.</li>
<li>If there are .go files in the filesystem but not registered, <strong>raise an error</strong>. This is to
prevent accidentally adding valid looking Go migration files without explicitly registering
them.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pressly/goose/commit/091166a0b573e240700eecfd7a9c26b994effebb"><code>091166a</code></a> Release v3.15.1</li>
<li><a href="https://github.com/pressly/goose/commit/e696fa3ba534f3766f50b2e9789d537316017bc4"><code>e696fa3</code></a> feat(experimental): move Provider to an internal package</li>
<li><a href="https://github.com/pressly/goose/commit/c590380f39cdea66e5000b3836f146df836a5c74"><code>c590380</code></a> feat(experimental): add internal migrate package and SessionLocker interface ...</li>
<li><a href="https://github.com/pressly/goose/commit/ccfb885423604a30b60ddce79439def8a7900e7d"><code>ccfb885</code></a> feat(experimental): goose provider with unimplemented methods (<a href="https://github.com/pressly/goose/issues/596">#596</a>)</li>
<li><a href="https://github.com/pressly/goose/commit/473a70da34ca4ca6460362ec84cf57dc6d2087d3"><code>473a70d</code></a> build: bump deps and GH actions (<a href="https://github.com/pressly/goose/issues/602">#602</a>)</li>
<li><a href="https://github.com/pressly/goose/commit/53f25a7779175a64ac0f7d095ef5172b3bc78acc"><code>53f25a7</code></a> build(deps): bump the gomod group with 1 update (<a href="https://github.com/pressly/goose/issues/593">#593</a>)</li>
<li><a href="https://github.com/pressly/goose/commit/b64f5c4a0e652165bd94ca41a62e034fc187446c"><code>b64f5c4</code></a> build(deps): bump actions/checkout from 3 to 4 (<a href="https://github.com/pressly/goose/issues/595">#595</a>)</li>
<li><a href="https://github.com/pressly/goose/commit/7011525591d08af44b9a3910e11ad50fc7527233"><code>7011525</code></a> fix: collect go migrations (<a href="https://github.com/pressly/goose/issues/588">#588</a>)</li>
<li><a href="https://github.com/pressly/goose/commit/958c950f66f4287072983c1b072b8ee023b1a601"><code>958c950</code></a> test: improve goose cli tests (<a href="https://github.com/pressly/goose/issues/589">#589</a>)</li>
<li>See full diff in <a href="https://github.com/pressly/goose/compare/v3.15.0...v3.15.1">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
argoyle
(Migrated from gitlab.com)
merged commit into main2023-10-11 06:54:29 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps github.com/pressly/goose/v3 from 3.15.0 to 3.15.1.
Release notes
Sourced from github.com/pressly/goose/v3's releases.
Changelog
Sourced from github.com/pressly/goose/v3's changelog.
Commits
091166aRelease v3.15.1e696fa3feat(experimental): move Provider to an internal packagec590380feat(experimental): add internal migrate package and SessionLocker interface ...ccfb885feat(experimental): goose provider with unimplemented methods (#596)473a70dbuild: bump deps and GH actions (#602)53f25a7build(deps): bump the gomod group with 1 update (#593)b64f5c4build(deps): bump actions/checkout from 3 to 4 (#595)7011525fix: collect go migrations (#588)958c950test: improve goose cli tests (#589)Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflicts