Skip to content

fix(ci): revert mcp-go 0.54.0 bump that raised go.mod to 1.25.5 - #281

Merged
yoanbernabeu merged 1 commit into
mainfrom
fix/ci-go-version-regression
Aug 30, 2026
Merged

yoanbernabeu merged 1 commit into
mainfrom
fix/ci-go-version-regression

Conversation

@yoanbernabeu

Copy link
Copy Markdown
Owner

Problem

main has been red since 63a42a4 (#242, mcp-go 0.45.0 → 0.54.0). That bump raised the go directive in go.mod from 1.24.2 to 1.25.5, which breaks every CI job:

Lint:

Error: can't load config: the Go language version (go1.24) used to build
golangci-lint is lower than the targeted Go version (1.25.5)

Test (all 6 matrix jobs): every package with test files passes, but packages without them fail to build their coverage profile, and the job exits 1:

# github.com/yoanbernabeu/grepai/cmd/grepai
go: no such tool "covdata"
# github.com/yoanbernabeu/grepai/watcher
go: no such tool "covdata"
# github.com/yoanbernabeu/grepai/fsharp
go: no such tool "covdata"
# github.com/yoanbernabeu/grepai/internal/fileutil
go: no such tool "covdata"

The CI matrix installs Go 1.22 and 1.23. With go 1.25.5 in go.mod, the build switches to a downloaded toolchain while covdata is still resolved against the local GOROOT, and the mismatch surfaces as no such tool.

Confirmed by the run history on main:

commit PR CI
0de6e12 #238 fsnotify success
63a42a4 #242 mcp-go 0.54.0 failure
everything after #206, #203, #263, #201, #276, #207 failure (inherited)

The later merges are not at fault — they only inherited a red main.

Fix

Revert #242, restoring go 1.24.2 and mcp-go 0.45.0 — the last known-green state.

Follow-up

mcp-go 0.54.0 requires Go 1.25, so taking it means dropping Go 1.22/1.23 from the support matrix. That is a product decision, not a dependency bump, and it needs its own PR touching .github/workflows/ci.yml (test matrix + the Go version used for lint and build). Dependabot will re-open the bump; it should stay blocked until that decision is made.

@yoanbernabeu
yoanbernabeu merged commit a162daa into main Aug 30, 2026
8 checks passed
@yoanbernabeu
yoanbernabeu deleted the fix/ci-go-version-regression branch August 30, 2026 16:22
yoanbernabeu added a commit that referenced this pull request Aug 30, 2026
The test matrix ran Go 1.22 and 1.23 while go.mod already required 1.24.2, and
lint/build pinned 1.22. Those jobs only passed because Go silently downloads the
required toolchain -- so the matrix was not testing the versions it claimed, and
a go.mod bump could break CI in ways the matrix could not catch. That is exactly
what happened with mcp-go 0.54.0 (#242, reverted in #281): raising the directive
to 1.25.5 broke lint ("go1.24 is lower than the targeted 1.25.5") and every test
job ("go: no such tool covdata").

Test matrix moves to 1.24/1.25, lint and build to 1.25. The coverage upload
condition follows the matrix (1.22 -> 1.24), otherwise it would never fire.

This also unblocks the pending dependency bumps that require Go 1.25:
qdrant/go-client (#253), pgvector-go (#254) and pgx/v5 (#228).


Claude-Session: https://claude.ai/code/session_01HYsWPWwoCnaitbmMx71U5z

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant