GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pkgs/import: go.mod/go.sum are not tidy (lib/pq recorded indirect though directly imported) — and no CI checks tidiness for the go-modules-build modules · Issue #347 · developing-today/code

pkgs/import: go.mod/go.sum are not tidy (lib/pq recorded indirect though directly imported) — and no CI checks tidiness for the go-modules-build modules #347

New issue
Copy link
New issue
Copy link
Closed
#348
Closed
pkgs/import: go.mod/go.sum are not tidy (lib/pq recorded indirect though directly imported) — and no CI checks tidiness for the go-modules-build modules#347
#348
Copy link
Assignees
dezren39

Description

@dezren39
dezren39
opened on Oct 19, 2026
Issue body actions

Summary

pkgs/import's go.mod/go.sum are not tidy, and no workflow checks tidiness for this module — so the drift is invisible. go build/go vet pass anyway (extra indirect requirements don't break a build), which is why the #342 build workflow's green runs don't reveal it.

Evidence (verified on main ff21d17, with the module's own Go 1.21.3)

Running go mod tidy in a scratch copy of pkgs/import changes both files:

  • github.com/lib/pq v1.10.9 moves from the indirect block to the direct require block. It is imported directly: pkgs/import/main.go:12 has _ "github.com/lib/pq" (the Postgres driver for goose). Recording a direct dependency as // indirect is exactly what tidy exists to prevent.
  • Stale indirect requirements are dropped — nothing in the module imports them (leftover goose dependency graph): github.com/cockroachdb/cockroach-go/v2 v2.3.5, github.com/jackc/pgx/v5 v5.5.1 (+ pgpassfile, pgservicefile), golang.org/x/crypto v0.16.0, golang.org/x/text v0.14.0.
  • go.sum shrinks accordingly (13 diff lines under Go 1.21.3; the same classification changes appear under Go 1.25.1's go mod tidy -diff).

The tidied module builds and vets clean under Go 1.21.3 (go build ./... + go vet ./... pass).

Why no check caught it

  • .github/workflows/mod-tidy.yml — the repo's only tidy check — covers only pkgs/graph.
  • .github/workflows/go-modules-build.yml (CI: five pkgs Go modules (chat, database, import, launcher, tea) are built by nothing — the map/identity rot pattern, still unguarded #342) builds and vets pkgs/import but never tidies; build/vet do not fail on an untidy module.
  • Sibling audit this run (same Go 1.21.3 tidy, scratch copies): chat, database, launcher, tea are all tidy-clean — import is the only drifting module among the five. (pkgs/mcpx already has its own tidy guard, added with the nix#436 set; pkgs/map/pkgs/identity are tidy-clean too.)

Why it matters

An untidy module misstates its real dependencies (a direct driver recorded as indirect; dead pgx/cockroach requirements kept in the graph). Renovate bumps and future go gets build on this graph, and the first person to run tidy for an unrelated change inherits an unrelated-looking go.mod/go.sum diff — the same class of silent rot #342/#340 fixed for builds.

Acceptance criteria

  • pkgs/import is tidy-clean: go mod tidy (module's Go 1.21.3) produces no changes to go.mod/go.sum; the module still builds and vets.
  • A CI guard fails when any of the five go-modules-build.yml modules is untidy (mirroring mod-tidy.yml's verify pattern: run tidy, fail if go.mod/go.sum changed) — a guard covering only import would let the next module drift the same way.
  • The guard passes for the other four modules (verified tidy-clean above).

Single-repo: pkgs/import exists only in this repo (no such module in opencode/openchamber/nix).

Activity

  1. github-actions
    assigned
    dezren39
    on Oct 19, 2026
  2. dezren39
    added a commit that references this issue on Oct 19, 2026

    Merge pull request #348 from developing-today/creator/347-import-tidy

    1ac0ef4
  3. dezren39
    closed this as completedin #348on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.