Repository navigation
build: upgrade Go to 1.26.8 - #275
Merged
Merged
Conversation
- Raise the minimum Go version to the latest 1.26 patch - Modernize provider syntax to satisfy Go 1.26 lint rules
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
Raise the minimum Go version from 1.25.11 to 1.26.8, the latest Go 1.26 patch release. Update Anthropic and Gemini pointer construction to new(value), and Anthropic error matching to errors.AsType, to satisfy the modernize lint rules enabled by Go 1.26. Provider behavior and dependency versions remain unchanged.
Related issues
N/A — no GitHub or Jira issue supplied.
AI authorship
Change classification
Plan reference
Upgrade go.mod to the latest Go 1.26 patch and make the minimal behavior-preserving syntax changes required by lint.
Verification
Run from the repository root after checking out
chore/upgrade-go-1.26.8. Prerequisites: Git, make, Go 1.26.8 (or automatic toolchain download enabled), and network access to download modules. No provider credentials or running services are needed for the existing tests.go versionmake fmtmake lintgo test ./...make buildgit diff --staged --checkUpgrade and provider regression scenario
go.mod: expectgo 1.26.8and unchanged dependency versions.go versionandmake build: expect the selected toolchain to meet the new minimum and a successful CLI build.go test ./...: expect existing Anthropic and Gemini streaming tests and the remaining suite to pass.Status: Passed. The version, build, full suite, and diff inspection met these conditions. These are mechanical syntax changes, with no new functionality or bug fix; existing tests were used. Live provider API calls were not run because no API behavior changed.
Cleanup: the build creates ignored
bin/codegpt; no application data or external service state is created.Security check
Risk and rollback
Build environments must support Go 1.26.8 or toolchain auto-download. Review provider syntax conversions for preserved values and error wrapping. Revert this commit to restore the previous Go requirement and syntax.