ipfs-shipyard / gomobile-ipfs

IPFS and libp2p on Mobile, with Gomobile
Other
316 stars 64 forks source link

[FEATURE]: Support go 1.18 #119

Closed jefft0 closed 1 year ago

jefft0 commented 2 years ago

With Go 1.18 installed, in packages, make test prints:

../../go/pkg/mod/github.com/lucas-clemente/quic-go@v0.24.0/internal/qtls/go118.go:6:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration

Other packages like Berty now build on go 1.18. To use gomobile-ipfs, it needs to support 1.18.

WesleyBatista commented 2 years ago

Experienced the same issue and got the build working without changing my global go installation with this:

go install golang.org/dl/go1.17.11@latest
go1.17.11 download
GOMOBILE="go1.17.11 run golang.org/x/mobile/cmd/gomobile" make build_demo.android

As a side note: lucas-clemente/quic-go added support to go 1.18 on v0.25.0.