Skip to content

chore(go): bump go directive to 1.27 - #523

Merged
shino merged 2 commits into
masterfrom
shino/go-1.27
Oct 2, 2026
Merged

shino merged 2 commits into
masterfrom
shino/go-1.27

Conversation

@shino

@shino shino commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

What did you implement:

Bump the go directive in go.mod from 1.25.0 to 1.27.

The Build job of the Test workflow currently fails on every pull request (e.g. #520), because the lint step cannot install revive.

make lint runs go install github.com/mgechev/revive@latest, and revive v1.16.0 requires go >= 1.26.0. The workflows set up Go with go-version-file: go.mod, so CI runs go 1.25.0 with GOTOOLCHAIN=local and the install is rejected:

go: github.com/mgechev/revive@latest: github.com/mgechev/revive@v1.16.0 requires go >= 1.26.0 (running go 1.25.0; GOTOOLCHAIN=local)
make: *** [GNUmakefile:33: lint] Error 1

Raising the directive makes setup-go install a toolchain that can build the latest revive. It is written as go 1.27 rather than go 1.27.0 so that setup-go resolves it to the latest 1.27.x patch release instead of pinning exactly 1.27.0. Only go.mod changes; go mod tidy produced no further diff.

Note: building this module from source now requires Go 1.27 or later. Release binaries and the Docker image (golang:alpine builder) are unaffected.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Locally with go1.27.0:

  • make test (revive@latest install + lint, vet, fmtcheck, unit tests) passes
  • golangci-lint run with golangci-lint v2.14.0 built with go1.27.0: 0 issues

Checklist:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

revive v1.16.0 requires go >= 1.26.0, so `go install github.com/mgechev/revive@latest` in `make lint` fails under the go 1.25.0 toolchain that setup-go picks from go.mod (GOTOOLCHAIN=local).
Copilot AI balanced review requested due to automatic review settings October 1, 2026 06:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The valid Go version bump resolves the documented CI incompatibility without unrelated changes.

Review effort: Balanced
Findings: None

What changed in this PR

Updates the module’s minimum Go version so CI can install the latest revive release successfully.

Changes:

  • Raises the Go directive from 1.25.0 to 1.27.0.
File Description
go.mod Updates the required Go toolchain version.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

With `go 1.27.0`, actions/setup-go (go-version-file: go.mod) installs exactly 1.27.0 even when a newer patch release exists. `go 1.27` lets CI and release builds pick up the latest 1.27.x.
@shino shino changed the title chore(go): bump go directive to 1.27.0 chore(go): bump go directive to 1.27 Oct 1, 2026
@shino
shino requested a balanced review from Copilot October 1, 2026 06:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The CI fix unnecessarily breaks compatibility for Go 1.25 and 1.26 module consumers.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

Comment thread go.mod
@shino
shino requested a balanced review from Copilot October 1, 2026 07:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused version bump matches repository policy and current CI tooling requirements.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@shino
shino requested a review from MaineK00n October 2, 2026 02:17
@shino
shino merged commit 544eace into master Oct 2, 2026
12 checks passed
@shino
shino deleted the shino/go-1.27 branch October 2, 2026 02:43
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