Skip to content

Upgrade to Go 1.25 - #288

Merged
GiedriusS merged 2 commits into
thanos-io:mainfrom
yuchen3642:go-1.25
Oct 4, 2026
Merged

GiedriusS merged 2 commits into
thanos-io:mainfrom
yuchen3642:go-1.25

Conversation

@yuchen3642

Copy link
Copy Markdown
Contributor
  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Upgrade the module and CI to Go 1.25:

  • go.mod: go 1.24.0 → go 1.25.0
  • .go-version (used by CI): 1.24.x → 1.25.x

Go 1.25 ships testing/synctest, which was requested in #287 (comment) to make time-dependent tests deterministic instead of relying on time.Sleep. #287 will be rebased onto this change and switched to synctest.

Go 1.24 is no longer supported upstream, so raising the minimum Go version for importers should be low-risk. No dependency versions change (go mod tidy is a no-op).

Verification

With Go 1.25.8:

  • go build ./... and go vet ./... pass.
  • make test-local passes except TestSSECencryption, which fails the same way on main because the pinned MinIO image can no longer be pulled from Docker Hub (fixed separately in s3: fix goroutine leak when Iter stops early #287).
  • golangci-lint v1.64.5 (as pinned in .bingo) builds and runs under Go 1.25. The only finding is a pre-existing goimports issue in scripts/cfggen/main.go, which main also reports with Go 1.24.

Bump the go directive and the CI toolchain to Go 1.25 so tests can use
testing/synctest.

Signed-off-by: Yuchen Wang <yw3642@gmail.com>
Signed-off-by: Yuchen Wang <yw3642@gmail.com>
@GiedriusS
GiedriusS merged commit a1e2d22 into thanos-io:main Oct 4, 2026
4 of 5 checks passed
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