Skip to content

Conversation

amoiseev
Copy link
Contributor

.go migrations are not included into embedded dir along with .sql migrations,
for .go migrations Goose instead relies on SQL driver-style registration via import _ and init().

This is easy to miss.

.go migrations are not included into embedded dir along with .sql migrations. `import _` the `migrations` package for `init()` functions to be called.
@amoiseev amoiseev changed the title Clarify .go migrations bot being included along with .sql migrations README.md: .go migrations package should be imported Jul 18, 2025
@mfridman mfridman merged commit 2c9813a into pressly:main Jul 30, 2025
4 checks passed
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.

2 participants