x/mobile: gomobile bind does not create reproducible builds, ignores -trimpath #40254
Labels
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
A full setup/build log is here:
https://gitlab.torproject.org/eighthave/snowflake/-/jobs/634
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
)?go env
OutputWhat did you do?
Ran a build with
gomobile bind -v -target=android -trimpath -ldflags=-buildid= .
in both gitlab-ci and a local vagrant/libvirt VM.What did you expect to see?
Reproducible builds between the two.
What did you see instead?
Diffs between the two builds in 3 of the 4 architectures, including diffs caused by build paths, which
-trimpath
is specifically meant to disable. Full diff is here:diffoscope-output.html.zip
The text was updated successfully, but these errors were encountered: