{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1758","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1758/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1758/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1758/events","html_url":"https://github.com/bazelbuild/bazel/issues/1758","id":176417005,"number":1758,"title":"Stamping is broken in genrule.","user":{"login":"AmandaCameron","id":114638,"avatar_url":"https://avatars.githubusercontent.com/u/114638?v=3","gravatar_id":"","url":"https://api.github.com/users/AmandaCameron","html_url":"https://github.com/AmandaCameron","followers_url":"https://api.github.com/users/AmandaCameron/followers","following_url":"https://api.github.com/users/AmandaCameron/following{/other_user}","gists_url":"https://api.github.com/users/AmandaCameron/gists{/gist_id}","starred_url":"https://api.github.com/users/AmandaCameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmandaCameron/subscriptions","organizations_url":"https://api.github.com/users/AmandaCameron/orgs","repos_url":"https://api.github.com/users/AmandaCameron/repos","events_url":"https://api.github.com/users/AmandaCameron/events{/privacy}","received_events_url":"https://api.github.com/users/AmandaCameron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20rules%20%3E%20misc%20native","name":"category: rules > misc native","color":"d4c5f9"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20feature%20request","name":"type: feature request","color":"0052cc"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/Under%20investigation","name":"Under investigation","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":{"login":"lberki","id":3524818,"avatar_url":"https://avatars.githubusercontent.com/u/3524818?v=3","gravatar_id":"","url":"https://api.github.com/users/lberki","html_url":"https://github.com/lberki","followers_url":"https://api.github.com/users/lberki/followers","following_url":"https://api.github.com/users/lberki/following{/other_user}","gists_url":"https://api.github.com/users/lberki/gists{/gist_id}","starred_url":"https://api.github.com/users/lberki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lberki/subscriptions","organizations_url":"https://api.github.com/users/lberki/orgs","repos_url":"https://api.github.com/users/lberki/repos","events_url":"https://api.github.com/users/lberki/events{/privacy}","received_events_url":"https://api.github.com/users/lberki/received_events","type":"User","site_admin":false},"assignees":[{"login":"lberki","id":3524818,"avatar_url":"https://avatars.githubusercontent.com/u/3524818?v=3","gravatar_id":"","url":"https://api.github.com/users/lberki","html_url":"https://github.com/lberki","followers_url":"https://api.github.com/users/lberki/followers","following_url":"https://api.github.com/users/lberki/following{/other_user}","gists_url":"https://api.github.com/users/lberki/gists{/gist_id}","starred_url":"https://api.github.com/users/lberki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lberki/subscriptions","organizations_url":"https://api.github.com/users/lberki/orgs","repos_url":"https://api.github.com/users/lberki/repos","events_url":"https://api.github.com/users/lberki/events{/privacy}","received_events_url":"https://api.github.com/users/lberki/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-09-12T16:10:38Z","updated_at":"2016-09-21T08:02:24Z","closed_at":"2016-09-21T07:44:44Z","body":"According to https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/bazel/rules/genrule/BazelGenRuleRule.java#L188 the stamping is currently broken in genrule, which is making it somewhat annoying to be able to generate reliable SCM info into my go binaries, which I'd like to be able to do via generation of a .go file using the genrule rule."},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/248539883","html_url":"https://github.com/bazelbuild/bazel/issues/1758#issuecomment-248539883","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1758","id":248539883,"user":{"login":"laszlocsomor","id":10532244,"avatar_url":"https://avatars.githubusercontent.com/u/10532244?v=3","gravatar_id":"","url":"https://api.github.com/users/laszlocsomor","html_url":"https://github.com/laszlocsomor","followers_url":"https://api.github.com/users/laszlocsomor/followers","following_url":"https://api.github.com/users/laszlocsomor/following{/other_user}","gists_url":"https://api.github.com/users/laszlocsomor/gists{/gist_id}","starred_url":"https://api.github.com/users/laszlocsomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laszlocsomor/subscriptions","organizations_url":"https://api.github.com/users/laszlocsomor/orgs","repos_url":"https://api.github.com/users/laszlocsomor/repos","events_url":"https://api.github.com/users/laszlocsomor/events{/privacy}","received_events_url":"https://api.github.com/users/laszlocsomor/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T08:02:24Z","updated_at":"2016-09-21T08:02:24Z","body":"I can think of one sure, but hacky way: add a source file to the genrule that you manually update before each build, so the genrule is always rebuilt, and if its output stays the same, downstream actions will be cache hits. This is of course not an optimal solution, just a workaround."}}
{"actor":{"display_login":"laszlocsomor"}}