Skip to content

fix: Move the Go toolchain as one Renovate group - #43

Merged
ecv merged 1 commit into
mainfrom
fix/go-toolchain-group
Nov 25, 2026
Merged

ecv merged 1 commit into
mainfrom
fix/go-toolchain-group

Conversation

@ecv

@ecv ecv commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

A Go module security update that needs a newer Go fails CI until someone moves the build image, setup-go, golangci-lint and chainsaw by hand, which hit 15 milo-os repositories on 24 Oct and would recur with Go 1.28 in February. Renovate now moves those pins together as one "Go toolchain" pull request per repository, opened without dashboard approval like Node.js, and reads Taskfile, Makefile and workflow variables marked with a # renovate: comment, where most repositories pin golangci-lint and chainsaw. The go.mod go line stays out, since it changes runtime defaults and a library's minimum Go.

Important

In milo-os, a later preset rule pulls the toolchain line into the Go modules group until it gains "matchDatasources": ["go"].

Test plan

  • Renovate's config validator accepts the preset in strict mode as a repository config
  • A local Renovate lookup on a fixture repository puts the toolchain line, golang images, setup-go, golangci-lint and chainsaw (action, Taskfile, Makefile and workflow forms) on one go-toolchain branch
  • The same lookup with the milo-os rule appended splits the toolchain line off, and the datasource filter rejoins it
  • After merge, a Go repository's dependency dashboard shows one Go toolchain pull request

Related to milo-os/renovate-config#3

A Go module security update that needs a newer Go fails CI until someone
moves the build image, setup-go, golangci-lint and chainsaw by hand, because
each pins Go on its own and Renovate offers them as separate dashboard boxes.
On 24 Oct this broke security updates in 15 milo-os repositories, and Go 1.28
in February would do it again.

Key changes:
- Group the go.mod toolchain line, golang build images, setup-go,
  golangci-lint and chainsaw into one Go toolchain pull request per
  repository, opened without dashboard approval like Node.js
- Read versions kept in Taskfile, Makefile and workflow variables that carry
  a "# renovate: datasource=... depName=..." comment, so linter and chainsaw
  pins outside workflow inputs become visible to Renovate
- Leave the go.mod go line out: it sets runtime defaults and a library's
  minimum Go, so it keeps moving in a change of its own

Related to milo-os/renovate-config#3
@ecv
ecv marked this pull request as ready for review November 25, 2026 19:16
@ecv
ecv requested a review from a team as a code owner November 25, 2026 19:16
@ecv
ecv requested a review from kevwilliams November 25, 2026 19:16
@ecv
ecv enabled auto-merge November 25, 2026 19:16
@ecv

ecv commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Merges together with milo-os/.github#6. Without it, the milo-os preset pulls the Go version line back into its Go modules group in every milo-os repository.

@ecv
ecv merged commit 84f5569 into main Nov 25, 2026
4 checks passed
@ecv
ecv deleted the fix/go-toolchain-group branch November 25, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants