Open kordax opened 2 years ago
The current Gomobile package doesn't contain bind and cmd packages in vendor mode and I cannot explicitly force vendor mod for bind/cmd packages using _ import.
I'm not sure the situation, but is this your vendor directory? Is it possible to include cmd in your vendor?
I can do this, but it will be gone with the next go mod vendor
command.
I think this is not an issue in Ebiten but in gomobile. A regular gomobile-bind caused the same error.
Yep, looks like it's gobind issue:
gobind -lang=go,java -outdir=/tmp/gomobile-work-1386653115 -javapkg=net.isoftservices.client ./src/game/android
unable to import bind: [-: cannot find package "." in:
/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
unable to import bind: [-: cannot find package "." in:
/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
unable to import bind: [-: cannot find package "." in:
/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
"golang.org/x/mobile/bind" is not found; run go get golang.org/x/mobile/bind: [-: cannot find package "." in:
/home/kordax/Projects/maxbet/octopus/vendor/golang.org/x/mobile/bind]
Hi, I have next problem while executing
Output is:
The problem is that ebitenmobile doesn't support -mod mod or -mod readonly and therefore it fails on Gobind when
vendor
dir is present in the root project's structure. The current Gomobile package doesn't containbind
andcmd
packages in vendor mode and I cannot explicitly force vendor mod forbind/cmd
packages using_
import.Is it possible to ignore the vendor directory somehow? It works fine if there's no
vendor
directory in the project.This problem is not as easy as it seems to be, because potentially the Gobind itself can be incapable of such an option.