commit | 62beb01c65bce245b8d22c6f69a8f461b917ce7d | [log] [tgz] |
---|---|---|
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | Mon Nov 29 21:38:45 2021 +0100 |
committer | GitHub <noreply@github.com> | Mon Nov 29 15:38:45 2021 -0500 |
tree | 99165b9f13aeb0d9e7d5f377ca0d1583dd9847eb | |
parent | aaf48cbd40dbc74a6199a1ff18db72090b11952b [diff] |
Trim absolute paths in files generated by cgo (#3011) The cgo command generates .c files that contain //line comments referencing source files by absolute paths into the Bazel cache. As the contents of these comments end up in the symbol table of the resulting c-archive, this makes Bazel-built CGo binaries non-reproducible. This is fixed by passing the -trimpath argument to cgo to trim the Bazel execroot prefix from these paths. Fixes #3010.