Upgrade to Go 1.25, add --dir flag and Homebrew publishing#6
Merged
Conversation
- Add --dir/-d flag to specify migrations directory independently from config file location - Add homebrew_casks config to .goreleaser.yaml for vmkteam/homebrew-tap - Pass HOMEBREW_TAP_TOKEN to goreleaser workflow - Upgrade golangci-lint to v2 config format with extended linter set - Replace goimports with golangci-lint fmt in Makefile - Bump Go version from 1.20 to 1.25 in go.mod and all CI workflows - Upgrade GitHub Actions to v6 (checkout, setup-go, goreleaser) - Fix linter issues: errorlint, perfsprint, funcorder, staticcheck, whitespace - Add Homebrew install instructions to README.md and README.ru.md - Remove outdated limitation about config file location from docs
- Replace goconvey with testify assert/require using t.Run for BDD style - Remove goconvey, gopherjs, jtolds/gls, smarty/assertions dependencies - Fix log.Fatal in runCmd/dryRunCmd/skipCmd to return error consistently - Fix typo "transation" → "transaction" in alwaysRollbackTx - Compile FileMask regex once in NewMigrator instead of per readAllFiles call - Use os.Stat instead of full file read for existence check in Redo - Remove dead "main" branch trigger from go.yml workflow
- Use homebrew_casks with correct token env mapping (HOMEBREW_TAP_GITHUB_TOKEN) - Add goarch amd64/arm64 for multi-architecture builds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--dir/-dflag to specify migrations directory independently from config file locationvmkteam/homebrew-taplog.Fatal→return errorin run/dryrun/skip commands--dirflag docs and Homebrew install instructionsTest plan
pgmigrator --dir <path> planuses the specified directorypgmigrator planwithout--diruses config file directory (backwards compatible)make fmt lint— passes with 0 issuesmake testwith databasegoreleaser check