-
Notifications
You must be signed in to change notification settings - Fork 39
Issue #504 - Version updates 2025-12 #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the Go version, dependencies, and tooling to current versions, with a focus on migrating golangci-lint from v1 to v2 format, establishing an isolated tools directory structure, and applying associated linting fixes across the codebase.
Key Changes
- Updated Go from 1.23.4 to 1.25.5
- Upgraded golangci-lint to v2.7.2 with complete v2 configuration migration
- Established
tools/directory pattern for build tools with isolated Go modules - Applied linting fixes for new golangci-lint v2 rules across the codebase
Reviewed changes
Copilot reviewed 46 out of 55 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
go.mod / go.sum |
Updated Go version to 1.25.5 and most dependencies; marked brittle deps for future updates |
tools/*/go.mod / tools/*/go.sum |
Created isolated tool modules for betteralign, gofumpt, goimports-reviser, golangci-lint, and tparse |
tools/README.md |
Documented tools directory structure and rationale |
run-golangci-lint-docker.sh |
Added Docker-based linting script for cross-architecture consistency |
.github/workflows/*.yml |
Updated action versions (checkout v6, setup-go v6, golangci-lint-action v9, etc.) |
Makefile |
Updated tool invocations to use go tool -modfile pattern |
cli/**/*.go |
Applied linting fixes: replaced deprecated ParseErrorsWhitelist, improved Sprint usage, simplified conditionals |
libsq/**/*.go |
Applied linting fixes: replaced nolint directives, improved string building, simplified switch statements |
drivers/*/metadata.go |
Converted if-else chains to switch statements for table type checking |
testh/tu/*.go |
Added context to exec.Command calls, suppressed linter for intentional formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
drluckyspin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 47 out of 56 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
For #504: Update Go version, library dependencies, and tooling to latest versions.
Summary
Maintenance PR to bring the codebase up to date with latest Go version, dependencies, and tooling.
Changes
Go Version
Dependencies
go.modto latest compatible versionsgo.sumwith new checksumsBRITTLEingo.modwere intentionally left unchanged and will be updated in a future PR:github.com/go-sql-driver/mysql v1.8.1github.colasdn.workers.dev/jackc/pgx/v5 v5.7.2github.colasdn.workers.dev/mattn/go-sqlite3 v1.14.24github.colasdn.workers.dev/microsoft/go-mssqldb v1.8.0github.colasdn.workers.dev/vbauerster/mpb/v8 v8.7.3Tooling
golangci-lint
.golangci.ymlfrom v1 format to v2 formatBuild Tools Directory
tools/directory with isolated Go modules for build tools:tools/betteralign/- struct field alignment checkertools/gofumpt/- stricter gofmttools/goimports-reviser/- import organizationtools/golangci-lint/- linter (isolated module)tools/tparse/- test output parsertools/README.mddocumenting the tools setupDocker Linting Script
run-golangci-lint-docker.shfor running golangci-lint in DockerGitHub Actions
.github/workflows/codacy.yml.github/workflows/codeql.yml.github/workflows/dependency-review.yml.github/workflows/docker-publish-ci.yml.github/workflows/docker-publish-dispatch.yml.github/workflows/main.yml(significant updates to linting steps)Linting Fixes
Applied fixes for linter warnings across the codebase:
cli/- Various linting fixesdrivers/mysql/metadata.go- Linting fixesdrivers/postgres/metadata.go- Linting fixesdrivers/sqlite3/grip.go- Linting fixesdrivers/sqlite3/metadata.go- Linting fixesdrivers/sqlserver/metadata.go- Linting fixeslibsq/ast/- AST handling improvementslibsq/core/- Core library fixeslibsq/driver/- Driver fixeslibsq/files/internal/downloader/- Downloader fixeslibsq/source/location/- Location handling fixestesth/tu/- Test utility fixesTest Data
drivers/sqlite3/testdata/sakila.dbdrivers/sqlite3/testdata/sakila_fts5.dbStats
Notes