Skip to content

fix: revert go directive to 1.24.0 after dependabot bump#75

Merged
Siddhant-K-code merged 1 commit into
mainfrom
fix/go-version-ci
May 2, 2026
Merged

fix: revert go directive to 1.24.0 after dependabot bump#75
Siddhant-K-code merged 1 commit into
mainfrom
fix/go-version-ci

Conversation

@Siddhant-K-code
Copy link
Copy Markdown
Owner

Problem

The dependabot PR (#46) bumped go.opentelemetry.io/otel to v1.43.0. That version's go.mod requires Go 1.25, and when dependabot ran go mod tidy on its toolchain it upgraded our go directive to 1.25.0. Go 1.25 is not yet released, so golangci-lint refuses to run against it, breaking the lint CI job.

Fix

  • Downgrade go.opentelemetry.io/otel and related packages back to v1.40.0 (last version compatible with Go 1.24)
  • Revert golang.org/x/sys to v0.40.0
  • Pin go directive back to 1.24.0
  • Run go mod tidy with GOTOOLCHAIN=go1.24.0 to prevent re-upgrade

Verification

go build ./...   ✅
go test ./...    ✅  (16/16 packages)

go.opentelemetry.io/otel v1.43.0 (merged via #46) ran go mod tidy on a
Go 1.25 toolchain, which upgraded the go directive in go.mod to 1.25.0.
Go 1.25 is not yet released and golangci-lint refuses to lint modules
targeting it, breaking CI.

Downgrade otel back to v1.40.0 (last version compatible with Go 1.24),
revert golang.org/x/sys to v0.40.0, and pin the go directive to 1.24.0.

Co-authored-by: Ona <no-reply@ona.com>
@Siddhant-K-code Siddhant-K-code merged commit 2c4e975 into main May 2, 2026
1 of 2 checks passed
@Siddhant-K-code Siddhant-K-code deleted the fix/go-version-ci branch May 2, 2026 15:17
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