x/mobile: Does not work with go.mod replace
#27324
Labels
FrozenDueToAge
mobile
Android, iOS, and x/mobile
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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/[email protected]/tcpip/buffer
.Unfortunately I am not that familiar with golang codebase so I need help figuring out how to fix this.
The text was updated successfully, but these errors were encountered: