x/mobile: gomobile install fails when using a vendor directory #22152
Labels
Milestone
Comments
From https://github.com/golang/mobile/blob/master/cmd/gomobile/build.go#L137 , var nmRE = regexp.MustCompile(`[0-9a-f]{8} t (golang.org/x.*/[^.]*)`) This regex is used to lookup "golang.org/x/..." package from shared object generated by gomobile using nm, but I guess it is not consider the "golang/x/..." package is placed under vendor directory. var nmRE = regexp.MustCompile(`[0-9a-f]{8} t .*(golang.org/x.*/[^.]*)`) If it is acceptable change, I'll create CL. :) |
That seems like a reasonable change. Please send a CL. |
Dup of: #18903 |
Change https://golang.org/cl/102095 mentions this issue: |
@eliasnaur |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: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?
The text was updated successfully, but these errors were encountered: