Repository navigation
fix(import): tidy go.mod/go.sum + tidy guard for the go-modules-build modules (#347) - #348
Merged
Merged
Conversation
…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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Fixes #347.
What
pkgs/import:go mod tidyunder the module's own Go 1.21.3.lib/pq(directly imported atmain.go:12as 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 — rungo mod tidy, fail ifgo.mod/go.sumchange (the same pattern mod-tidy.yml uses forpkgs/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
chat,database,launcher,teaare tidy-clean, so the new guard passes for them; import was the only drifting module of the five. (pkgs/map/pkgs/identityalso tidy-clean; they keep their dedicated workflows.)Need help on this PR? Tag
@codesmith-botwith what you need.