Repository navigation
Conversation
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>
|
No actionable comments were generated in the recent review.
|
| 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:
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: 
3 · 
1
-
Failed checks: 1 warning Passed checks: 3 passed-
Full details: Linked Issues check
-
Explanation
Issue
#91requires Go 1.27.1 configuration, related build configuration updates,go mod tidy, and passing builds and tests.go.moddeclaresgo 1.27.1and has notoolchainline.build/Makefile.core.mksetsGOVERSION = 1.27.1.Dockerfileusesgolang:1.27. The PR reports that workflows read the version fromgo.mod, so no workflow edit is required. The PR also reports successfulgo mod tidy,go build ./...,go vet ./..., andgo 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.
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>
marblom007
left a comment
There was a problem hiding this comment.
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 theDockerfile(ARG GOLANG_VERSION) all agree on 1.27.3, and the Dockerfile keeps its existing minor-only tag convention.go mod tidymade no further changes, and the workflows followgo.modviago-version-file.
Nothing to change — looks good.
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 notoolchainline)build/Makefile.core.mk:GOVERSION = 1.26.4→1.27.3Dockerfile:ARG GOLANG_VERSION=1.26→1.27, keeping the minor-only tag the file already uses.golang:1.27currently points to the same image asgolang: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 tidymade 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 ./...: okgo vet ./...: okgo test -v ./...: ok (there are no test files yet)gofmt -s -l: no outputmake dep-check: no warningCGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a ... main.go): builds a static linux/amd64 binary, andgo versionon 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:
golangci-lintjob,actions/setup-goruns beforeactions/checkout, sogo-version-file: go.modisn't there yet ("The specified go version file at: go.mod does not exist").version: latestinstalls golangci-lint v2 (currently v2.15.0, built with go1.27.0; its version check only compares1.27, so Go 1.27.3 is fine), which rejects the v1-format.golangci.ymlwithunsupported version of the configuration.Testsjob,engineerd/setup-kind@v0no longer resolves.triagecheck 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