Repository navigation
chore(deps): update Go from 1.25.0 to 1.26.0 - #161
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrzej-stencel
requested review from
samuelvl
and removed request for
a team
November 16, 2026 13:07
samuelvl
reviewed
Nov 16, 2026
go.mod's go directive is the minimum Go version for users of this library, so it stays at 1.26.0. setup-go read it as an exact version, which made CI test with Go 1.26.0 rather than the current patch release. Take only major.minor from the go directive and pass it to setup-go as a wildcard (1.26.x) with check-latest, so CI always uses the newest patch release of that minor version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # .github/actions/setup/action.yml
samuelvl
approved these changes
Nov 16, 2026
swiatekm
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
godirective ingo.modanddev-tools/v2tool/go.modfrom1.25.0to1.26.0.1.26.x), rather than the exact version ingo.mod.This is a library, so the directive is the minimum Go version that consumers need, not the toolchain they build with.
1.26.0keeps that minimum at the oldest supported Go release. Elastic Agent, Beats and Fleet Server are moving to Go 1.27.4.CI shouldn't be pinned to the minimum. Until now,
setup-goreadgo.modas an exact version, so CI ran on whatever thegoline said (1.25.0 before this PR). The shared setup action now takes only major.minor from thegoline and passes it tosetup-goas a wildcard (1.26.x).setup-gouses a matching 1.26 release already cached on the runner image and downloads one only if there isn't one. Only the minor version is read, so CI isn't affected if a dependency update later rewrites thegoline to a different patch.Testing
sedexpression gives1.26forgo 1.26.0,go 1.26,go 1.26rc1and CRLF line endings, under both BSD and BusyBoxsed. If thegoline is missing, the step fails with an error.go mod tidymakes no changes;go vet ./...,go test -race ./...andmage checkpass.go vet ./...andgo test -race ./...pass.dev-tools/v2toolalready fails to build onmain(undefined: proto.ConnInfo), and itsgo.modisn't tidy there either. This PR doesn't change that, and CI doesn't build that module.Related issues
🤖 Generated with Claude Code