Commit 170fa75
committed
fix(wgnest): make gomobile bind work in CI (android-release was failing)
The android-release "Build wgnest AAR" step failed with
"gomobile: missing golang.org/x/mobile dependency". Two causes:
- go.mod had drifted to `go 1.26.5` (a local `go get` bumped it); CI's setup-go
is 1.25, so it triggered a toolchain switch that lost the x/mobile tool context.
Pin `go 1.25.0` (x/crypto v0.54.0 needs >= 1.25.0; matches CI exactly — no
toolchain download).
- The go1.24 `tool` directive isn't reliably honored by gomobile bind. Replace it
with the classic tools.go blank import (`//go:build tools`), which keeps
golang.org/x/mobile a DIRECT dependency on every Go version.
Verified: build-android.sh produces wgmobile.aar again, and `go build ./...`
(normal, no tools tag) still builds. Same go.mod feeds build-ios.sh, so the iOS
xcframework build gets the fix too.1 parent bd3dd20 commit 170fa75
2 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments