Renovate: run go mod tidy after Go updates #7

Closed
opened 2026-10-24 19:56:16 +00:00 by Gilles · 0 comments
Owner

Renovate's Go updates run go get but not go mod tidy. When they bump indirect modules (here golang.org/x/sync, x/term, x/tools), go.sum lacks the entries the tool dependencies (gotestsum, gocover-cobertura) need, and CI fails on "missing go.sum entry" before running any test. PR #6 hit this and needed a manual go mod tidy.

Add "postUpdateOptions": ["gomodTidy"] to renovate.json so Renovate tidies the module itself.

Renovate's Go updates run `go get` but not `go mod tidy`. When they bump indirect modules (here `golang.org/x/sync`, `x/term`, `x/tools`), `go.sum` lacks the entries the `tool` dependencies (gotestsum, gocover-cobertura) need, and CI fails on "missing go.sum entry" before running any test. PR #6 hit this and needed a manual `go mod tidy`. Add `"postUpdateOptions": ["gomodTidy"]` to `renovate.json` so Renovate tidies the module itself.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Gilles/mattermost-plugin-ivatar-avatar-sync#7
No description provided.