Description
The --migration.folder flag does not work as documented for the go tool db commands. According to the documentation, this flag should allow users to specify a custom location for migration files, but it appears to be non-functional.
Affected Commands
go tool db generate_migration
go tool db migrate
Actual Behavior
The --migration.folder flag does not work, obtaining this output:
go tool db generate_migration create_users_table --migration.folder=internal/infrastructure/migrations
Usage of /Users/user/Library/Caches/go-build/3e/3e67624e8785a68cd8b78066b0f2b59cdeb5023524dd6bb8a6522a651b4e4e05-d/db:
unknown flag: --migration.folder
Environment
- Go version: 1.25.0
- OS: Mac Tahoe 26.1
- Tool version: v0.1.8
Description
The
--migration.folderflag does not work as documented for thego tool dbcommands. According to the documentation, this flag should allow users to specify a custom location for migration files, but it appears to be non-functional.Affected Commands
go tool db generate_migrationgo tool db migrateActual Behavior
The
--migration.folderflag does not work, obtaining this output:Environment