Skip to content

Check every Go module for go.sum drift #50

Backlog

Description

@lusoris

Three open Renovate pull requests for tools/knowledge-mcp (#41, #42, #48) leave go.sum untidy, and no check in this repository notices.

go mod tidy -diff exits 1 on each pull request head and exits 0 on every Go module at main. The pull requests still build and pass their tests, so the drift would merge silently and the next hand-written change to the module would carry it.

There are two causes:

  • Renovate does not tidy. renovate.json extends only config:recommended. The organisation preset sets postUpdateOptions: ["gomodTidy"] (horistes ADR-0051), and adopting that preset is tracked in Configure Renovate in the organisation shape #22.
  • Nothing checks for drift. make verify-all runs go test, lefthook runs go vet, and the two workflows (licence.yml, public-tree.yml) do not touch Go.

This issue adds the second barrier: a go mod tidy -diff step for every Go module, run by make verify-all and by a pull request check that Renovate branches also go through. A planted untidy go.sum must fail the check, and main must pass it.

#41, #42 and #48 stay unmerged until #22 lands and Renovate rebases them with gomodTidy.

Plan ids:

  • finding-merge-stragglers-84b4ec7a77-20261118-1459
  • knowledge-renovate-gomodtidy-gate

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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