Skip to content

[meshery-nighthawk] Upgrade Go to 1.27.3 - #92

Open
Sagar07Kr wants to merge 2 commits into
meshery-extensions:masterfrom
Sagar07Kr:chore/91-upgrade-go-1.27.1
Open

Sagar07Kr wants to merge 2 commits into
meshery-extensions:masterfrom
Sagar07Kr:chore/91-upgrade-go-1.27.1

Conversation

@Sagar07Kr

@Sagar07Kr Sagar07Kr commented Oct 29, 2026 •

Copy link
Copy Markdown

Description

This PR fixes #91

Upgrades Go from 1.26.4 to 1.27.3:

  • go.mod: go 1.26.4 → go 1.27.3 (there is no toolchain line)
  • build/Makefile.core.mk: GOVERSION = 1.26.4 → 1.27.3
  • Dockerfile: ARG GOLANG_VERSION=1.26 → 1.27, keeping the minor-only tag the file already uses. golang:1.27 currently points to the same image as golang:1.27.3.

The issue asks for 1.27.1. The second commit moves to 1.27.3, the current patch release, because 1.27.0 through 1.27.2 are affected by GO-2026-6809 (CVE-2026-111943, crypto/x509), and 1.27.3 has the fix. The same was done for meshery/meshery.io#3083 in meshery/meshery.io#3114. If you'd rather stay on exactly 1.27.1, I can drop that commit.

All workflows use go-version-file: go.mod, so they need no change. go mod tidy made no further changes to go.mod or go.sum.

Notes for Reviewers

Checked locally with Go 1.27.3 (GOTOOLCHAIN=go1.27.3), and with 1.27.1 before the second commit:

  • go build ./...: ok
  • go vet ./...: ok
  • go test -v ./...: ok (there are no test files yet)
  • gofmt -s -l: no output
  • make dep-check: no warning
  • The Dockerfile's build command (CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a ... main.go): builds a static linux/amd64 binary, and go version on it reports go1.27.3. I don't have Docker on this machine, so I didn't build the image itself.

The CI workflow was already failing on master before this change, for reasons that aren't about the Go version, so I left it alone here:

  • In the golangci-lint job, actions/setup-go runs before actions/checkout, so go-version-file: go.mod isn't there yet ("The specified go version file at: go.mod does not exist").
  • Once that is fixed, version: latest installs golangci-lint v2 (currently v2.15.0, built with go1.27.0; its version check only compares 1.27, so Go 1.27.3 is fine), which rejects the v1-format .golangci.yml with unsupported version of the configuration.
  • In the Tests job, engineerd/setup-kind@v0 no longer resolves.
  • The triage check fails on its labeler config (found unexpected type for label 'area/docs'), the same as on Stop logging kubeconfigs in ApplyOperation and ProcessOAM #90.

I can send a separate PR for those if that helps.

Signed commits

  • Yes, I signed my commits.

Bump the go directive in go.mod and GOVERSION in build/Makefile.core.mk
to 1.27.1, and the Dockerfile builder image to golang:1.27 (the
Dockerfile pins the minor version only). The workflows read the version
from go.mod through go-version-file.

go mod tidy leaves go.mod and go.sum otherwise unchanged.

Fixes meshery-extensions#91

Signed-off-by: Sagar Kumar <sagar0206mahran@gmail.com>
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cba796c6-7747-4fe6-a428-0758c845b2b2
Commits

Reviewing files that changed from the base of the PR and between 96b1fb4 and e2fcb3e.

Files selected for processing: 3
  • Dockerfile
  • build/Makefile.core.mk
  • go.mod

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The Go version declarations change to 1.27 or 1.27.1 in the module, Makefile, and Dockerfile.

Changes: Go version update

Layer / File(s) Summary
Update Go version declarations
go.mod, build/Makefile.core.mk, Dockerfile
The go directive and GOVERSION change to 1.27.1. The Dockerfile default changes from 1.26 to 1.27.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: Minimal · up to e2fcb

The Go version update is consistent across the reviewed declarations and is ready to merge.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Title check Warning The title names the Go upgrade, but it says 1.27.3. The changeset (go.mod, build/Makefile.core.mk, Dockerfile) and the linked PR objectives all set Go to 1.27.1, so the version in the title does not m… Change the title to state Go 1.27.1, the version in go.mod, build/Makefile.core.mk, and the Dockerfile. For example: "[meshery-nighthawk] Upgrade Go to 1.27.1".
Passed Passed checks: 3 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Issue #91 requires Go 1.27.1 configuration, related build configuration updates, go mod tidy, and passing builds and tests. go.mod declares go 1.27.1 and has no toolchain line. `build/Makefile…
Out of Scope Changes check Passed The reviewed changes are limited to the Go module directive, the Makefile Go version, and the Docker builder image version. These changes directly implement issue #91. No unrelated source, dependency,…
Full details: Linked Issues check

Explanation

Issue #91 requires Go 1.27.1 configuration, related build configuration updates, go mod tidy, and passing builds and tests. go.mod declares go 1.27.1 and has no toolchain line. build/Makefile.core.mk sets GOVERSION = 1.27.1. Dockerfile uses golang:1.27. The PR reports that workflows read the version from go.mod, so no workflow edit is required. The PR also reports successful go mod tidy, go build ./..., go vet ./..., and go test -v ./....

Full details: Out of Scope Changes check

Explanation

The reviewed changes are limited to the Go module directive, the Makefile Go version, and the Docker builder image version. These changes directly implement issue #91. No unrelated source, dependency, workflow, or CI remediation changes are included.

Full details: Title check

Explanation

The title names the Go upgrade, but it says 1.27.3. The changeset (go.mod, build/Makefile.core.mk, Dockerfile) and the linked PR objectives all set Go to 1.27.1, so the version in the title does not match the diff. The title is otherwise related to the main change.

Resolution

Change the title to state Go 1.27.1, the version in go.mod, build/Makefile.core.mk, and the Dockerfile. For example: "[meshery-nighthawk] Upgrade Go to 1.27.1".

Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Go 1.27.0 through 1.27.2 are affected by GO-2026-6809
(CVE-2026-111943) in crypto/x509, which is fixed in 1.27.3. Move the
go directive and GOVERSION to 1.27.3 so the workflows that read the
version from go.mod build with the patched release. The Dockerfile
already uses golang:1.27, which resolves to 1.27.3.

Refs meshery-extensions#91

Signed-off-by: Sagar Kumar <sagar0206mahran@gmail.com>
@Sagar07Kr Sagar07Kr changed the title [meshery-nighthawk] Upgrade Go to 1.27.1 [meshery-nighthawk] Upgrade Go to 1.27.3 Oct 29, 2026

@marblom007 marblom007 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Clean upgrade, and the description lays out the reasoning clearly, including why 1.27.3 rather than 1.27.1.

What I checked:

  • go.mod, build/Makefile.core.mk, and the Dockerfile (ARG GOLANG_VERSION) all agree on 1.27.3, and the Dockerfile keeps its existing minor-only tag convention.
  • go mod tidy made no further changes, and the workflows follow go.mod via go-version-file.

Nothing to change — looks good.

@Sagar07Kr Sagar07Kr mentioned this pull request Nov 12, 2026
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.

Upgrade to Go 1.27.1

2 participants