RTECO-945 - Fix Go version mismatch in Alpine APK CI#3592
Merged
Conversation
naveenku-jfrog
force-pushed
the
RTECO-alpine-go-fix
branch
from
July 8, 2026 08:33
d3325ad to
9dd6ac1
Compare
Alpine package repos only ship Go <=1.23 (even on Alpine 3.21), but go.mod requires go 1.26.3, causing 'invalid go version' parse errors. Fix: do not install Go via 'apk add go'. Instead: - Record the host GOROOT after install-go-with-cache (new step) - Mount that directory into the Alpine chroot via jirutka/setup-alpine volumes input so the same Go 1.26 binary is available inside Alpine - Export GOROOT/GOPATH/GOCACHE into the alpine.sh test step and prepend GOROOT/bin to PATH so 'go' resolves to the host toolchain Co-authored-by: Cursor <cursoragent@cursor.com>
naveenku-jfrog
force-pushed
the
RTECO-alpine-go-fix
branch
from
July 8, 2026 08:45
9dd6ac1 to
b8cc0dc
Compare
Contributor
naveenku-jfrog
enabled auto-merge (squash)
July 8, 2026 09:06
naveenku-jfrog
disabled auto-merge
July 8, 2026 09:23
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.

Alpine package repos only ship Go <=1.23 (even on Alpine 3.21), but go.mod requires go 1.26.3, causing 'invalid go version' parse errors.
Fix: do not install Go via 'apk add go'. Instead:
Record the host GOROOT after install-go-with-cache (new step)
Mount that directory into the Alpine chroot via jirutka/setup-alpine volumes input so the same Go 1.26 binary is available inside Alpine
Export GOROOT/GOPATH/GOCACHE into the alpine.sh test step and prepend GOROOT/bin to PATH so 'go' resolves to the host toolchain
All tests have passed. If this feature is not already covered by the tests, new tests have been added.
The pull request is targeting the
masterbranch.The code has been validated to compile successfully by running
go vet ./....The code has been formatted properly using
go fmt ./....