Skip to content

Support Go 1.26.4 builds#152

Open
Eric-Guo wants to merge 3 commits into
go-dev-frame:mainfrom
Eric-Guo:go_1_26_4
Open

Support Go 1.26.4 builds#152
Eric-Guo wants to merge 3 commits into
go-dev-frame:mainfrom
Eric-Guo:go_1_26_4

Conversation

@Eric-Guo

Copy link
Copy Markdown
Contributor

Summary

  • bump Go dependencies needed for Go 1.26.4 compatibility
  • use temp directories for sqlite and tracer tests so local test runs do not leave repository artifacts
  • make the sqlite parser test path portable across platforms

Tests

  • go test ./pkg/sgorm/sqlite ./pkg/sql2code/parser ./pkg/tracer

@Eric-Guo Eric-Guo marked this pull request as ready for review June 17, 2026 15:57
Copilot AI review requested due to automatic review settings June 17, 2026 15:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR primarily improves test portability and isolation (avoiding OS-specific paths and repo-local filesystem side effects), while also updating a few Go dependencies.

Changes:

  • Make filesystem-touching tests use temp directories and OS-agnostic path joining.
  • Replace ad-hoc panic recovery logic with a structured panic assertion in tracer tests.
  • Bump several Go module dependencies (notably sonic and gorm) and refresh go.sum.

Reviewed changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/tracer/console_test.go Isolates file exporter tests via temp working directory and updates panic assertion logic.
pkg/sql2code/parser/parser_test.go Replaces Windows-specific path string with filepath.Join for cross-platform tests.
pkg/sgorm/sqlite/sqlite_test.go Writes sqlite test DB into t.TempDir() for better isolation.
go.mod Updates dependency versions and adds new indirect deps required by upgrades.
go.sum Syncs checksums with updated module graph.
.gitignore Ignores sqlite .db files under pkg/sgorm/sqlite/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +33 to +35
assert.Panics(t, func() {
_, _, _ = NewFileExporter(t.TempDir())
})
Comment on lines +372 to +373
dbFile := filepath.Join("..", "..", "..", "test", "sql", "sqlite", "sponge.db")
info, err := GetSqliteTableInfo(dbFile, "user_order")
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