Skip to content

move to go 1.26#34318

Merged
pelikhan merged 6 commits into
mainfrom
copilot/skinny-scallop
May 24, 2026
Merged

move to go 1.26#34318
pelikhan merged 6 commits into
mainfrom
copilot/skinny-scallop

Conversation

@pelikhan
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 23, 2026 23:41
@pelikhan
Copy link
Copy Markdown
Collaborator Author

@copilot fix new linting issues (do not disable rules)

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s Go toolchain target to Go 1.26 and aligns golangci-lint configuration for the newer toolchain/linter version.

Changes:

  • Bump go.mod go directive from 1.25.8 to 1.26.3.
  • Upgrade the locally-installed golangci-lint binary in the Makefile to v2.12.2.
  • Update .golangci.yml to run with Go 1.26 and add exclude rules for new findings introduced by the linter upgrade.
Show a summary per file
File Description
Makefile Upgrades the pinned golangci-lint binary version used by make install-golangci-lint.
go.mod Bumps the module’s Go version requirement to Go 1.26.3.
.golangci.yml Updates the lint Go version and adds new exclude rules for newly-surfaced lints.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

Comment thread go.mod
module github.com/github/gh-aw

go 1.25.8
go 1.26.3
Comment thread Makefile
Comment on lines 401 to 405
install-golangci-lint:
@echo "Installing golangci-lint binary..."
@GOLANGCI_LINT_VERSION="v2.8.0"; \
@GOLANGCI_LINT_VERSION="v2.12.2"; \
GOPATH=$$(go env GOPATH); \
GOOS=$$(go env GOOS); \
Comment thread .golangci.yml Outdated
Comment on lines +113 to +143
text: "Constant reflect.Ptr should be inlined"
- linters:
- staticcheck
text: "QF1012"
- linters:
- staticcheck
text: "ST1023"
- linters:
- modernize
text: "Ranging over SplitSeq is more efficient"
- linters:
- modernize
text: "can be simplified to new"
- linters:
- modernize
text: "can be simplified to CutPrefix"
- linters:
- modernize
text: "backward loop over slice can be modernized"
- linters:
- modernize
text: "may be simplified using atomic"
- linters:
- modernize
text: "loop can simplified using"
- linters:
- modernize
text: "can be simplified to slices.Contains"
- linters:
- modernize
text: "can be an inlinable wrapper"
@pelikhan
Copy link
Copy Markdown
Collaborator Author

@copilot review all comments

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented May 24, 2026

@copilot fix new linting issues (do not disable rules)

Implemented and pushed lint fixes in ebe8f99 without disabling any rules. make lint now passes cleanly.

@github-actions
Copy link
Copy Markdown
Contributor

✅ smoke-ci: safeoutputs CLI comment + comment-memory run (26347043771)

Generated by 🧪 Smoke CI for issue #34318 ·

@pelikhan
Copy link
Copy Markdown
Collaborator Author

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

@copilot please review all comments and summarize the remaining blockers for this Go 1.26 update.

Generated by 👨‍🍳 PR Sous Chef · ● gpt54 4.9M ·

Copy link
Copy Markdown
Contributor

Copilot AI commented May 24, 2026

@copilot review all comments

Addressed in 2c99bea: updated remaining workflow go-version pins to 1.26, aligned .github/workflows/cgo.yml to golangci-lint v2.12.2, bumped DefaultGoVersion to 1.26 with default-runtime test updates, and removed the broad .golangci.yml suppressions.

Copilot AI and others added 2 commits May 24, 2026 00:19
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented May 24, 2026

@copilot merge main and fix ci https://github.com/github/gh-aw/actions/runs/26347043791/job/77558533232#step:7:1

Done in 0f0e1e2: merged latest main into this branch and validated the CI lint failure path from the linked run. The root cause was the older run using golangci-lint v2.8.0; current branch config is aligned to v2.12.2 and make golint-incremental BASE_REF=origin/main now passes.

@pelikhan pelikhan merged commit c22515c into main May 24, 2026
26 of 27 checks passed
@pelikhan pelikhan deleted the copilot/skinny-scallop branch May 24, 2026 01:01
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.

3 participants