Skip to content

chore: spring cleaning — Go matrix, pgx, testify, golangci-lint#79

Open
obitech wants to merge 5 commits into
mainfrom
aknipping/obitech-spring-cleaning-2026
Open

chore: spring cleaning — Go matrix, pgx, testify, golangci-lint#79
obitech wants to merge 5 commits into
mainfrom
aknipping/obitech-spring-cleaning-2026

Conversation

@obitech
Copy link
Copy Markdown
Member

@obitech obitech commented May 12, 2026

Maintenance batch, no public API or behavior changes.

  • CI: extend Go matrix to 1.22–1.26, add a golangci-lint step.
  • Deps: bump jackc/pgx/v5; promote stretchr/testify to direct.
  • Tests: switch assertions to testify/assert + testify/require.
  • Lint: replace archived golint with golangci-lint run in the Makefile; fix one staticcheck SA1029 (typed context key in tests).

obitech added 5 commits May 12, 2026 08:12
The golang.org/x/lint/golint tool was archived in 2020. Replace the
Makefile's `lint` target with `golangci-lint run ./...` and drop the
now-unused `deps` target that installed the archived binary. CI gains
a `golangci-lint` step using golangci/golangci-lint-action@v9 so the
same check runs in pull requests.
Define an unexported spanNameCtxKey struct in
TestTracer_sqlOperationNameFromCtx instead of using a bare string
as the context.WithValue key. Mirrors the startTimeCtxKey{} pattern
already used in tracer.go and silences staticcheck SA1029.
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.

1 participant