Skip to content

fix(import): tidy go.mod/go.sum + tidy guard for the go-modules-build modules (#347) - #348

Merged
dezren39 merged 1 commit into
mainfrom
creator/347-import-tidy
Oct 19, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator/347-import-tidy

Conversation

@dezren39

@dezren39 dezren39 commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Fixes #347.

What

  • pkgs/import: go mod tidy under the module's own Go 1.21.3. lib/pq (directly imported at main.go:12 as the Postgres driver) moves to the direct require block; stale indirects nothing imports are dropped (cockroach-go/v2, pgx/v5 + pgpassfile/pgservicefile, x/crypto, x/text — leftover goose graph). Tidy is idempotent on the result; go build ./... + go vet ./... pass under Go 1.21.3.
  • .github/workflows/go-modules-build.yml: each matrix job now verifies tidiness before building — run go mod tidy, fail if go.mod/go.sum change (the same pattern mod-tidy.yml uses for pkgs/graph, which is the only module that workflow watches). Build/vet alone do not fail on an untidy module, which is how import drifted under green CI.

Verification

  • Sibling audit under Go 1.21.3 in scratch copies: chat, database, launcher, tea are tidy-clean, so the new guard passes for them; import was the only drifting module of the five. (pkgs/map/pkgs/identity also tidy-clean; they keep their dedicated workflows.)
  • Workflow YAML parses.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…dules-build modules (#347)

pkgs/import recorded lib/pq as indirect though main.go imports it
directly, and carried stale pgx/cockroach/x-crypto/x-text indirects.
go mod tidy (Go 1.21.3) fixes the classification; build+vet pass.

go-modules-build.yml gains a tidy-verify step per matrix job (run
tidy, fail if go.mod/go.sum change), mirroring mod-tidy.yml's pattern
— that workflow only watches pkgs/graph, and build/vet do not fail
on an untidy module. The other four modules are verified tidy-clean.
@dezren39
dezren39 requested a review from a team as a code owner October 19, 2026 10:06
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-19T10:06:08.397517Z 296b7f3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit 1ac0ef4 into main Oct 19, 2026
8 checks passed
@dezren39
dezren39 deleted the creator/347-import-tidy branch October 19, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant