gomobile-ipfs icon indicating copy to clipboard operation
gomobile-ipfs copied to clipboard

[FEATURE]: Support go 1.18

Open jefft0 opened this issue 3 years ago • 1 comments

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

../../go/pkg/mod/github.com/lucas-clemente/[email protected]/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.

jefft0 avatar Jun 25 '22 17:06 jefft0

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.

WesleyBatista avatar Jul 10 '22 16:07 WesleyBatista