Well, the fix to gobind was simple, just add GOROOT to the env of cmds being execued
https://github.com/dballard/mobile/commit/ff01053d86dfbd6f8699e82b06e762c14ea269bdTho actually contributing it back seems like a chore, signing up to the golang entierly specific workflow. So maybe that'll be a job for anotehr day :/
Now however I am getting a gomobile failire
:app:gomobileDebug
/home/user/src/go/bin/gomobile: loadExportData failed go install -pkgdir=/home/user/src/go/pkg/gomobile/pkg_android_arm -gcflags=-shared -ldflags=-shared github.com/dballard/go-ricochet-mobile failed: exit status 1
../../../src/go/src/github.com/dballard/go-ricochet-mobile/InitActivity.go:12:2: cannot find package "Java/RicochetMobile/ActivityInitBinding" in any of:
/home/user/go/src/Java/RicochetMobile/ActivityInitBinding (from $GOROOT)
/tmp/gomobile-work-829567560/gen/src/Java/RicochetMobile/ActivityInitBinding (from $GOPATH)
/home/user/src/go/src/Java/RicochetMobile/ActivityInitBinding
../../../src/go/src/github.com/dballard/go-ricochet-mobile/InitActivity.go:10:2: cannot find package "Java/RicochetMobile/R/layout" in any of:
/home/user/go/src/Java/RicochetMobile/R/layout (from $GOROOT)
/tmp/gomobile-work-829567560/gen/src/Java/RicochetMobile/R/layout (from $GOPATH)
/home/user/src/go/src/Java/RicochetMobile/R/layout
../../../src/go/src/github.com/dballard/go-ricochet-mobile/InitActivity.go:6:2: cannot find package "Java/android/databinding/DataBindingUtil" in any of:
/home/user/go/src/Java/android/databinding/DataBindingUtil (from $GOROOT)
/tmp/gomobile-work-829567560/gen/src/Java/android/databinding/DataBindingUtil (from $GOPATH)
/home/user/src/go/src/Java/android/databinding/DataBindingUtil
../../../src/go/src/github.com/dballard/go-ricochet-mobile/InitActivity.go:7:2: cannot find package "Java/android/os" in any of:
/home/user/go/src/Java/android/os (from $GOROOT)
/tmp/gomobile-work-829567560/gen/src/Java/android/os (from $GOPATH)
/home/user/src/go/src/Java/android/os
FAILED
FAILURE: Build failed with an exception.
It seems like half the imports I would expect to be there are not
Any ideas?
the ones that worked were:
"Java/android/support/v7/app"
gopkg "Java/RicochetMobile"
"Java/RicochetMobile/databinding"