{"action":"created","issue":{"url":"https://api.github.com/repos/rebar/rebar/issues/335","labels_url":"https://api.github.com/repos/rebar/rebar/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar/issues/335/comments","events_url":"https://api.github.com/repos/rebar/rebar/issues/335/events","html_url":"https://github.com/rebar/rebar/pull/335","id":39742387,"number":335,"title":"Add flag to ignore pre- and post-hooks","user":{"login":"derek121","id":1594587,"avatar_url":"https://avatars.githubusercontent.com/u/1594587?v=3","gravatar_id":"","url":"https://api.github.com/users/derek121","html_url":"https://github.com/derek121","followers_url":"https://api.github.com/users/derek121/followers","following_url":"https://api.github.com/users/derek121/following{/other_user}","gists_url":"https://api.github.com/users/derek121/gists{/gist_id}","starred_url":"https://api.github.com/users/derek121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derek121/subscriptions","organizations_url":"https://api.github.com/users/derek121/orgs","repos_url":"https://api.github.com/users/derek121/repos","events_url":"https://api.github.com/users/derek121/events{/privacy}","received_events_url":"https://api.github.com/users/derek121/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rebar/rebar/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/rebar/rebar/labels/Minor","name":"Minor","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2014-08-07T16:21:23Z","updated_at":"2015-06-01T17:41:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rebar/rebar/pulls/335","html_url":"https://github.com/rebar/rebar/pull/335","diff_url":"https://github.com/rebar/rebar/pull/335.diff","patch_url":"https://github.com/rebar/rebar/pull/335.patch"},"body":"Adds the ability to specify on the command line that pre-hooks\r\n(--ignore-pre-hooks), post-hooks (--ignore-post-hooks), or both\r\n(--ignore-hooks) should be ignored.\r\n\r\nThis can be useful when a hook is expensive to execute, and not needed for every compile or clean. For example, having relx as a post-compile hook, to create a release, which isn't needed when doing compiles during development.\r\n\r\nOtherwise, one's rebar.config could be manually modified to remove the hooks until they're needed again, or a copy of the rebar.config could be maintained, without the hook, but those both require extra work.\r\n\r\nSeparate makefile targets can include or not include an --ignore-* flag. For example \"make dev\" can invoke \"rebar --ignore-post-hooks compile\", while \"make release\" can invoke \"rebar compile\" (to allow the normal hook execution).\r\n\r\ninttest/thooks_exclude has been added to test this (based on the existing inttest/thooks)\r\n\r\nNo additional Dialyzer warnings are generated from these changes (\"make check\" on the current master results in about 15 warnings, however).\r\n"},"comment":{"url":"https://api.github.com/repos/rebar/rebar/issues/comments/107651005","html_url":"https://github.com/rebar/rebar/pull/335#issuecomment-107651005","issue_url":"https://api.github.com/repos/rebar/rebar/issues/335","id":107651005,"user":{"login":"tuncer","id":4232,"avatar_url":"https://avatars.githubusercontent.com/u/4232?v=3","gravatar_id":"","url":"https://api.github.com/users/tuncer","html_url":"https://github.com/tuncer","followers_url":"https://api.github.com/users/tuncer/followers","following_url":"https://api.github.com/users/tuncer/following{/other_user}","gists_url":"https://api.github.com/users/tuncer/gists{/gist_id}","starred_url":"https://api.github.com/users/tuncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuncer/subscriptions","organizations_url":"https://api.github.com/users/tuncer/orgs","repos_url":"https://api.github.com/users/tuncer/repos","events_url":"https://api.github.com/users/tuncer/events{/privacy}","received_events_url":"https://api.github.com/users/tuncer/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T17:41:32Z","updated_at":"2015-06-01T17:41:32Z","body":"Maybe this is better solved by rebar3's profile support. I'd like to see only one rebar version, given the limited development resources, and I hope we can eventually (once rebar3 is a smooth-to-migrate-to replacement) put rebar2 into critical-bugfixes-only mode."}}