x/mobile: gobind adds local paths to .so file even with -trimpath #73097
Labels
BugReport
Issues describing a possible bug in the Go implementation.
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.24.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
Our go.mod file contains replace rules to local paths. e.g.
What did you see happen?
The lib is built with gomobile bind, and the created .so has the following in the footer:
What did you expect to see?
I would expect
gomobile bind
should trim the absolute paths when using-trimpath
, e.g./Users/brien/urnetwork/connect
should be../connect
/Users/brien/urnetwork/protocol
should be../protocol
/Users/brien/urnetwork/sdk
should be.
The text was updated successfully, but these errors were encountered: