xref: /aosp_15_r20/external/bazelbuild-rules_go/tests/core/stdlib/README.rst (revision 9bb1b549b6a84214c53be0924760be030e66b93a)
1stdlib functionality
2====================
3
4buildid_test
5------------
6
7Checks that the ``stdlib`` rule builds archives without Go build ids.
8
9Go build ids are used for caching within ``go build``; they are not needed by
10Bazel, which has its own caching mechanism. The build id is influenced by
11all inputs to the build, including cgo environment variables. Since these
12variables may include sandbox paths, they can make the build id
13non-reproducible, even though they don't affect the final binary.
14