Commit b8cc0dc
RTECO-945 - Fix Go version mismatch in Alpine APK CI
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>1 parent e9b8432 commit b8cc0dc
1 file changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
85 | 82 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
97 | 88 | | |
98 | | - | |
99 | 89 | | |
100 | 90 | | |
101 | 91 | | |
| |||
0 commit comments