renovate: install Go so go.sum is updated with go.mod #7

Merged
james merged 1 commit from james/renovate-setup-go into main 2026-10-25 19:28:06 +00:00 AGit
Owner

Renovate's Go dependency PRs fail to build: each bumps go.mod, but go.sum is never updated. Renovate's own comment on the PRs shows why:

File name: go.sum
spawn go ENOENT

The shared Renovate job only sets up Node, and Renovate needs the go binary to refresh go.sum. In balam, #26 (chi) and #37 (oauth2) fail go vet with "missing go.sum entry", and #35/#36 have the same stale go.sum.

Change

Adds actions/setup-go (pinned to the v5.6.0 commit) with go-version: stable before the Renovate step.

  • Repos without a go.mod are unaffected.
  • With the default GOTOOLCHAIN=auto, Go downloads whatever toolchain a repo's go.mod requires.
  • Caching is off, since there's no go.sum at the workflow level to key it on.

After merging

Callers pin this workflow by SHA, so each repo needs its pin bumped (balam follow-up PR coming). Then tick the rebase/retry box on the broken Renovate PRs so Renovate regenerates them with a correct go.sum.

Renovate's Go dependency PRs fail to build: each bumps `go.mod`, but `go.sum` is never updated. Renovate's own comment on the PRs shows why: ``` File name: go.sum spawn go ENOENT ``` The shared Renovate job only sets up Node, and Renovate needs the `go` binary to refresh `go.sum`. In balam, #26 (chi) and #37 (oauth2) fail `go vet` with "missing go.sum entry", and #35/#36 have the same stale `go.sum`. ## Change Adds `actions/setup-go` (pinned to the v5.6.0 commit) with `go-version: stable` before the Renovate step. - Repos without a `go.mod` are unaffected. - With the default `GOTOOLCHAIN=auto`, Go downloads whatever toolchain a repo's `go.mod` requires. - Caching is off, since there's no go.sum at the workflow level to key it on. ## After merging Callers pin this workflow by SHA, so each repo needs its pin bumped (balam follow-up PR coming). Then tick the rebase/retry box on the broken Renovate PRs so Renovate regenerates them with a correct `go.sum`.
renovate: install Go so go.sum is updated with go.mod
Some checks failed
ojo-scan.yml / Merge pull request 'renovate: install Go so go.sum is updated with go.mod' (#7) from james/renovate-setup-go into main (pull_request) Failing after 0s
renovate.yml / Merge pull request 'renovate: install Go so go.sum is updated with go.mod' (#7) from james/renovate-setup-go into main (pull_request) Failing after 0s
ojo-scan.yml / renovate: install Go so go.sum is updated with go.mod (pull_request) Failing after 0s
renovate.yml / renovate: install Go so go.sum is updated with go.mod (pull_request) Failing after 0s
488c44d683
Renovate runs `go` to refresh go.sum after bumping a module in go.mod.
The job only set up Node, so every Go update failed with "spawn go
ENOENT" and opened PRs with a stale go.sum that don't build (balam #26,
#35, #36, #37).

Add actions/setup-go (pinned by SHA) with go-version stable. Repos
without a go.mod are unaffected, and Go downloads whatever toolchain a
repo's go.mod requires.
james merged commit bc1df09da5 into main 2026-10-25 19:28:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
ColibriSec/forgejo-workflows!7
No description provided.