Bump Go to 1.27.1 - #14442
Merged
Merged
Bump Go to 1.27.1#14442
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The repository-wide toolchain upgrade and generated rewrites require final CI-backed human validation.
Pull request overview
Updates GitHub CLI to Go 1.27.1 and applies Go 1.27 source modernizations.
Changes:
- Raises the Go directive/toolchain and validation-tool pins.
- Migrates error matching to
errors.AsType. - Applies iterator and embedded-field literal modernizations.
File summaries
| File | Description |
|---|---|
go.mod |
Updates Go to 1.27.0/1.27.1. |
.github/golangci-lint-version |
Updates golangci-lint. |
.github/govulncheck-version |
Updates govulncheck. |
api/client.go |
Modernizes API error matching. |
api/queries_repo.go |
Modernizes GraphQL error matching. |
git/command.go |
Modernizes process error matching. |
git/client_test.go |
Modernizes test error matching. |
internal/codespaces/codespaces.go |
Modernizes timeout matching. |
internal/codespaces/connection/tunnels_api_server_mock.go |
Simplifies embedded-field initialization. |
internal/config/migration/multi_account.go |
Modernizes migration error matching. |
internal/ghcmd/cmd.go |
Modernizes CLI error dispatch. |
internal/run/run.go |
Modernizes exit-error matching. |
internal/skills/discovery/discovery.go |
Modernizes release error matching. |
internal/skills/installer/installer.go |
Modernizes traversal-error matching. |
internal/zip/zip.go |
Modernizes traversal-error matching. |
pkg/iostreams/iostreams.go |
Uses reverse-slice iteration. |
pkg/cmd/attestation/api/client.go |
Modernizes retry error matching. |
pkg/cmd/attestation/artifact/oci/client.go |
Modernizes transport-error matching. |
pkg/cmd/attestation/artifact/oci/client_test.go |
Simplifies a composite literal. |
pkg/cmd/attestation/verification/attestation.go |
Modernizes path-error matching. |
pkg/cmd/attestation/verification/extensions_test.go |
Simplifies certificate literals. |
pkg/cmd/attestation/verification/mock_verifier.go |
Simplifies certificate literals. |
pkg/cmd/auth/status/status.go |
Modernizes scope-error matching. |
pkg/cmd/cache/delete/delete.go |
Modernizes HTTP error matching. |
pkg/cmd/codespace/ssh.go |
Modernizes iteration and string splitting. |
pkg/cmd/extension/command.go |
Modernizes extension-error matching. |
pkg/cmd/gist/create/create.go |
Modernizes HTTP error matching. |
pkg/cmd/issue/edit/edit_test.go |
Simplifies embedded test literals. |
pkg/cmd/issue/shared/lookup.go |
Modernizes GraphQL error matching. |
pkg/cmd/pr/create/create.go |
Modernizes reverse iteration and literals. |
pkg/cmd/pr/create/create_test.go |
Simplifies embedded test literals. |
pkg/cmd/pr/edit/edit_test.go |
Simplifies embedded test literals. |
pkg/cmd/project/shared/queries/queries.go |
Modernizes GraphQL error matching. |
pkg/cmd/release/create/create.go |
Modernizes workflow-scope error matching. |
pkg/cmd/release/shared/upload.go |
Modernizes network-error matching. |
pkg/cmd/repo/create/create.go |
Modernizes process error matching. |
pkg/cmd/repo/delete/delete.go |
Modernizes HTTP error matching. |
pkg/cmd/repo/gitignore/view/view.go |
Modernizes HTTP error matching. |
pkg/cmd/repo/license/view/view.go |
Modernizes HTTP error matching. |
pkg/cmd/repo/sync/http.go |
Modernizes HTTP error matching. |
pkg/cmd/repo/sync/sync.go |
Modernizes synchronization error matching. |
pkg/cmd/root/alias.go |
Modernizes process error matching. |
pkg/cmd/root/extension.go |
Modernizes process error matching. |
pkg/cmd/run/cancel/cancel.go |
Modernizes HTTP error matching. |
pkg/cmd/run/delete/delete.go |
Modernizes HTTP error matching. |
pkg/cmd/run/download/download.go |
Modernizes traversal-error matching. |
pkg/cmd/skills/install/install.go |
Modernizes discovery-error matching. |
pkg/cmd/skills/list/list.go |
Uses reverse-slice iteration. |
pkg/cmd/ssh-key/list/list.go |
Modernizes HTTP error matching. |
pkg/cmd/status/status.go |
Modernizes GraphQL error matching. |
pkg/cmd/workflow/disable/disable.go |
Modernizes workflow-error matching. |
pkg/cmd/workflow/enable/enable.go |
Modernizes workflow-error matching. |
pkg/cmd/workflow/run/run.go |
Modernizes workflow-error matching. |
pkg/cmd/workflow/shared/shared.go |
Modernizes HTTP error matching. |
Review details
- Files reviewed: 54/54 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
babakks
approved these changes
Sep 14, 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.
This PR updates Go to the latest stable release.
1.27.0go1.27.1v2.13.2v1.8.0