Skip to content

x/mobile: gomobile install fails when using a vendor directory #22152

Closed
@ghost

Description

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go1.9 linux/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

linux/amd64 (arch linux)

What did you do?

running gomobile install <package name> fails when using a vendor directory to manage deps with the following error:

gomobile: gitlab.com/stackmesh/network does not import "golang.org/x/mobile/app"

This has been tested for both the included x/mobile examples and custom projects.

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

https://play.golang.org/p/HMsmNBlfwJ
run glide init && glide update (should place a vendor dir in the project root),
run gomobile install <package name/gopath>

What did you expect to see?

The normal apk building messages and the upload logging.

What did you see instead?

gomobile: gitlab.com/stackmesh/network does not import "golang.org/x/mobile/app"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions