Skip to content

build(deps): declare the Go 1.27 floor without a patch version - #2480

Merged
rdimitrov merged 2 commits into
mainfrom
rdimitrov/brainy-cellar-98d763e7
Oct 23, 2026
Merged

rdimitrov merged 2 commits into
mainfrom
rdimitrov/brainy-cellar-98d763e7

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

A module's go directive is a minimum toolchain requirement that propagates to every consumer. A patch floor such as go 1.27.3 in a published library forces every downstream project onto that patch. This change declares go 1.27 wherever the module graph allows it and never pins a toolchain.

  • go 1.27: engine, authn/oidc, contracts, adaptersupport, environment/microvm, provider/ssefilter.
  • Bumps toolhive v0.54.0 → v0.55.1 and sigstore v1.11.0 → v1.11.1, the first releases that declare go 1.27 rather than go 1.27.0. Without the bump, go mod tidy raises consumers back to go 1.27.0.
  • The module publication check's consumer declares go 1.27; its go mod tidy raises it when a published module requires more.
  • The guard test (redis_dependency_floor_test.go) requires go 1.27, lists each remaining inherited patch floor with its source, and rejects toolchain directives.

Remaining patch floors

Go requires a module to declare at least the highest go line in its dependencies. These manifests consume published engine releases that were cut with a patch floor, so they keep it for now:

Floor Manifests Source
go 1.27.3 root, go.work, integration/microvm, provider/anthropic, provider/openai, provider/openaichat engine v0.18.0
go 1.27.2 adapters engine pseudo-version of 2026-10-13

Follow-up to clear them: release engine from this change (its go.mod now says go 1.27), bump the pins above and lower their go lines, then do the same for adapters. The guard test's exception table should end up empty.

Source-build docs and the Taskfile keep "Go 1.27.3 or newer", because a source build of the root module still requires it. Container images keep their pinned golang:1.27.3@sha256:… bases.

Testing

  • go mod tidy -diff is clean for every module; workspace and standalone root builds pass.
  • go test -race ./internal/adapter/mcpbroker/sealedauthstorage/ passes against toolhive v0.55.1.
  • The guard test fails when go 1.27.3 and toolchain go1.27.3 are reintroduced into engine/go.mod.
  • task lint and task test:race on macOS: every failure reproduces on unmodified main on the same machine (a darwin-only gosec finding, /private/var path, BSD stat and Kind-cluster tests), or passes in isolation (two agenthook timing tests under suite load).

🤖 Generated with Claude Code

rdimitrov and others added 2 commits October 23, 2026 12:59
A module's go directive is a minimum toolchain requirement that propagates
to every consumer, so a patch floor in a published library forces each
downstream project onto that patch. Declare go 1.27 wherever the module
graph allows it and never pin a toolchain.

Bump toolhive to v0.55.1 and sigstore to v1.11.1, the first releases that
declare go 1.27 instead of go 1.27.0. Modules that consume published engine
releases cut with a patch floor keep that floor until their pins move; the
guard test lists each one and rejects toolchain directives.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov merged commit 57a9f86 into main Oct 23, 2026
45 checks passed
@rdimitrov
rdimitrov deleted the rdimitrov/brainy-cellar-98d763e7 branch October 23, 2026 10:23
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 23, 2026
2 tasks
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