xref: /aosp_15_r20/external/bazelbuild-rules_go/tests/integration/reproducibility/README.rst (revision 9bb1b549b6a84214c53be0924760be030e66b93a)
1Reproducibility
2
3reproducibility_test
4--------------------
5Verifies that the files generated when building a set of targets are identical,
6even when built from multiple copies of the same workspace.
7
8Currently covers pure ``go_binary`` targets and a cgo ``go_binary`` with
9``linkmode = "c-archive"``.
10
11TODO: cover more modes. Currently, it seems like a cgo ``go_binary`` that
12produces an executable is not reproducible on macOS. This is most likely
13due to the external linker, since all the inputs to the linker are identical.
14Needs investigation.
15