x/mobile: claims to require 1.7+ but actually requires 1.9+ #29486
Labels
Documentation
FrozenDueToAge
mobile
Android, iOS, and x/mobile
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
The latest release of go: no.
The latest release of x/mobile: yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I was following the instructions at https://github.com/golang/go/wiki/Mobile#sdk-applications-and-generating-bindings.
I'm using Go 1.7.4.
gomobile
says that it requires Go 1.7+:I got as far as the
gomobile bind
command.What did you expect to see?
(no error)
What did you see instead?
A segmentation fault:
Additional information
gobind
uses an interface that's only in Go 1.9+. I traced the error to this line added by this commit:importer.For
is returningnil
. Support for the"source"
argument was added in f81466c. I didn't find the change in the release notes, butgit tag --contains f81466ce9c663ddc1d136d2c435c60d988cf316a
indicates it was added in go1.9. I tried it again with go1.10.5 and didn't encounter the problem.The text was updated successfully, but these errors were encountered: