Closed petethepig closed 5 years ago
Looks like a partial duplicate of #27300.
''' env go111module=off gomobile bind ''' it's will temporarily worked fine
cc @eliasnaur - some time has elapsed since this issue and I'm not sufficiently up to speed to know whether mobile
is now modules-aware.
Gomobile has not been converted.
ons. 14. nov. 2018 06.23 skrev Paul Jolly notifications@github.com:
cc @eliasnaur https://github.com/eliasnaur - some time has elapsed since this issue and I'm not sufficiently up to speed to know whether mobile is now modules-aware.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/golang/go/issues/27324#issuecomment-438541489, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgCDL9Avhhu3l2QEDJBjv3NuzrsdjKSks5uu6jegaJpZM4WQkS8 .
Making https://github.com/golang/go/issues/27234 as the tracker issue for making gomobile module-aware. Closing this one as this just points out that gomobile is not module-aware.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
I created a very basic go project that illustrates the issue: https://github.com/petethepig/gomobilebug
There's a
go.mod
file, notice the use ofreplace
:I run
gomobile bind -v -target ios .
What did you expect to see?
I expected the command to succeed.
What did you see instead?
Instead the command throws an error:
It seems like something somewhere fails to properly replace the paths (For example, it searches for
github.com/google/netstack/tcpip/buffer
package in/Users/username/.gvm/gos/go1.11/src/github.com/google/netstack/tcpip/buffer
when it should be searching for it somewhere like/Users/username/.gvm/pkgsets/go1.11/global/pkg/mod/github.com/petethepig/netstack@v0.0.0-20171026205909-b4b77f7e31f6/tcpip/buffer
.Unfortunately I am not that familiar with golang codebase so I need help figuring out how to fix this.