{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/22","labels_url":"https://api.github.com/repos/facebook/buck/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/22/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/22/events","html_url":"https://github.com/facebook/buck/issues/22","id":14202802,"number":22,"title":"genrule() should support non-idempotent execution","user":{"login":"spearce","id":34844,"avatar_url":"https://avatars.githubusercontent.com/u/34844?v=3","gravatar_id":"","url":"https://api.github.com/users/spearce","html_url":"https://github.com/spearce","followers_url":"https://api.github.com/users/spearce/followers","following_url":"https://api.github.com/users/spearce/following{/other_user}","gists_url":"https://api.github.com/users/spearce/gists{/gist_id}","starred_url":"https://api.github.com/users/spearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spearce/subscriptions","organizations_url":"https://api.github.com/users/spearce/orgs","repos_url":"https://api.github.com/users/spearce/repos","events_url":"https://api.github.com/users/spearce/events{/privacy}","received_events_url":"https://api.github.com/users/spearce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/buck/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"jasone","id":245970,"avatar_url":"https://avatars.githubusercontent.com/u/245970?v=3","gravatar_id":"","url":"https://api.github.com/users/jasone","html_url":"https://github.com/jasone","followers_url":"https://api.github.com/users/jasone/followers","following_url":"https://api.github.com/users/jasone/following{/other_user}","gists_url":"https://api.github.com/users/jasone/gists{/gist_id}","starred_url":"https://api.github.com/users/jasone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasone/subscriptions","organizations_url":"https://api.github.com/users/jasone/orgs","repos_url":"https://api.github.com/users/jasone/repos","events_url":"https://api.github.com/users/jasone/events{/privacy}","received_events_url":"https://api.github.com/users/jasone/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2013-05-10T18:14:46Z","updated_at":"2015-02-03T19:09:51Z","closed_at":null,"body":"I want to use this sort of idiom to embed the version into my binary:\r\n\r\n```python\r\ngenrule(\r\n  name = 'git_describe',\r\n  cmd = 'mkdir -p $(dirname $OUT); git describe HEAD >$OUT',\r\n  srcs = [],\r\n  out = 'resources/com/google/gerrit/common/Version',\r\n)\r\n```\r\n\r\nHowever this requires BUCK to support an uncacheable genrule."},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/72713750","html_url":"https://github.com/facebook/buck/issues/22#issuecomment-72713750","issue_url":"https://api.github.com/repos/facebook/buck/issues/22","id":72713750,"user":{"login":"bolinfest","id":655869,"avatar_url":"https://avatars.githubusercontent.com/u/655869?v=3","gravatar_id":"","url":"https://api.github.com/users/bolinfest","html_url":"https://github.com/bolinfest","followers_url":"https://api.github.com/users/bolinfest/followers","following_url":"https://api.github.com/users/bolinfest/following{/other_user}","gists_url":"https://api.github.com/users/bolinfest/gists{/gist_id}","starred_url":"https://api.github.com/users/bolinfest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolinfest/subscriptions","organizations_url":"https://api.github.com/users/bolinfest/orgs","repos_url":"https://api.github.com/users/bolinfest/repos","events_url":"https://api.github.com/users/bolinfest/events{/privacy}","received_events_url":"https://api.github.com/users/bolinfest/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T19:09:51Z","updated_at":"2015-02-03T19:09:51Z","body":"@nickpalmer We fixed your specific case with a custom rule that does smart things: http://facebook.github.io/buck/rule/android_build_config.html"}}