{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/2805","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2805/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2805/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2805/events","html_url":"https://github.com/bazelbuild/bazel/issues/2805","id":221073424,"number":2805,"title":"git hash in --build-id","user":{"login":"htuch","id":10914751,"avatar_url":"https://avatars1.githubusercontent.com/u/10914751?v=4","gravatar_id":"","url":"https://api.github.com/users/htuch","html_url":"https://github.com/htuch","followers_url":"https://api.github.com/users/htuch/followers","following_url":"https://api.github.com/users/htuch/following{/other_user}","gists_url":"https://api.github.com/users/htuch/gists{/gist_id}","starred_url":"https://api.github.com/users/htuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htuch/subscriptions","organizations_url":"https://api.github.com/users/htuch/orgs","repos_url":"https://api.github.com/users/htuch/repos","events_url":"https://api.github.com/users/htuch/events{/privacy}","received_events_url":"https://api.github.com/users/htuch/received_events","type":"User","site_admin":false},"labels":[{"id":192364170,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P2","name":"P2","color":"e99695","default":false},{"id":392619826,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20rules%20%3E%20C++","name":"category: rules > C++","color":"d4c5f9","default":false},{"id":106503261,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20feature%20request","name":"type: feature request","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"oquenchil","id":23365806,"avatar_url":"https://avatars0.githubusercontent.com/u/23365806?v=4","gravatar_id":"","url":"https://api.github.com/users/oquenchil","html_url":"https://github.com/oquenchil","followers_url":"https://api.github.com/users/oquenchil/followers","following_url":"https://api.github.com/users/oquenchil/following{/other_user}","gists_url":"https://api.github.com/users/oquenchil/gists{/gist_id}","starred_url":"https://api.github.com/users/oquenchil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oquenchil/subscriptions","organizations_url":"https://api.github.com/users/oquenchil/orgs","repos_url":"https://api.github.com/users/oquenchil/repos","events_url":"https://api.github.com/users/oquenchil/events{/privacy}","received_events_url":"https://api.github.com/users/oquenchil/received_events","type":"User","site_admin":false},"assignees":[{"login":"oquenchil","id":23365806,"avatar_url":"https://avatars0.githubusercontent.com/u/23365806?v=4","gravatar_id":"","url":"https://api.github.com/users/oquenchil","html_url":"https://github.com/oquenchil","followers_url":"https://api.github.com/users/oquenchil/followers","following_url":"https://api.github.com/users/oquenchil/following{/other_user}","gists_url":"https://api.github.com/users/oquenchil/gists{/gist_id}","starred_url":"https://api.github.com/users/oquenchil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oquenchil/subscriptions","organizations_url":"https://api.github.com/users/oquenchil/orgs","repos_url":"https://api.github.com/users/oquenchil/repos","events_url":"https://api.github.com/users/oquenchil/events{/privacy}","received_events_url":"https://api.github.com/users/oquenchil/received_events","type":"User","site_admin":false}],"milestone":null,"comments":15,"created_at":"2017-04-11T20:37:24Z","updated_at":"2018-02-21T15:29:19Z","closed_at":null,"author_association":"NONE","body":"Some projects, such as Envoy (https://github.com/lyft/envoy/) need the ability to set `-Wl,--build-id=<git hash of workspace generating build>` to encode the build ID in the `.note.gnu.build-id` ELF section.\r\n\r\nIt seems that Bazel uses this for hashing inputs or setting to a fixed value, based on the `stamp` option in `cc_binary` or `--stamp` on the CLI. Manually specifying a `linkopt` does not override, since this comes before the Bazel supplied `--build-id` on the command line.\r\n\r\nWhat's the best practice for doing this today in Bazel?\r\n\r\nI noticed https://github.com/bazelbuild/bazel/issues/216, but this doesn't seem to reference setting the `--build-id`, it seems to be concerned with obtaining the build information.\r\n\r\nCC @mattklein123 https://github.com/lyft/envoy/issues/415"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/367363682","html_url":"https://github.com/bazelbuild/bazel/issues/2805#issuecomment-367363682","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2805","id":367363682,"user":{"login":"htuch","id":10914751,"avatar_url":"https://avatars1.githubusercontent.com/u/10914751?v=4","gravatar_id":"","url":"https://api.github.com/users/htuch","html_url":"https://github.com/htuch","followers_url":"https://api.github.com/users/htuch/followers","following_url":"https://api.github.com/users/htuch/following{/other_user}","gists_url":"https://api.github.com/users/htuch/gists{/gist_id}","starred_url":"https://api.github.com/users/htuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htuch/subscriptions","organizations_url":"https://api.github.com/users/htuch/orgs","repos_url":"https://api.github.com/users/htuch/repos","events_url":"https://api.github.com/users/htuch/events{/privacy}","received_events_url":"https://api.github.com/users/htuch/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T15:29:19Z","updated_at":"2018-02-21T15:29:19Z","author_association":"NONE","body":"We're tracking this on the Envoy side in https://github.com/envoyproxy/envoy/issues/2625. We need to find someone with cycles to validate the new Bazel native solutions, CC: @jmillikin-stripe."}}
{"actor":{"display_login":"htuch"}}