{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4523","labels_url":"https://api.github.com/repos/composer/composer/issues/4523/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4523/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4523/events","html_url":"https://github.com/composer/composer/issues/4523","id":112622121,"number":4523,"title":"composer require doesn't run pre-install-cmd","user":{"login":"oligriffiths","id":1246671,"avatar_url":"https://avatars.githubusercontent.com/u/1246671?v=3","gravatar_id":"","url":"https://api.github.com/users/oligriffiths","html_url":"https://github.com/oligriffiths","followers_url":"https://api.github.com/users/oligriffiths/followers","following_url":"https://api.github.com/users/oligriffiths/following{/other_user}","gists_url":"https://api.github.com/users/oligriffiths/gists{/gist_id}","starred_url":"https://api.github.com/users/oligriffiths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oligriffiths/subscriptions","organizations_url":"https://api.github.com/users/oligriffiths/orgs","repos_url":"https://api.github.com/users/oligriffiths/repos","events_url":"https://api.github.com/users/oligriffiths/events{/privacy}","received_events_url":"https://api.github.com/users/oligriffiths/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-21T15:59:12Z","updated_at":"2015-10-22T17:19:48Z","closed_at":null,"body":"I've noticed that running `composer require vendor/package` doesn't trigger the `pre-install-cmd` or `pre-update-cmd` scripts to run. Is there a way to run a script `pre-require` I don't see anything in the docs about this? I am using the pre-install and pre-update hooks to update a composer proxy cache, so need this to run before anything is installed/updated."},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/150295708","html_url":"https://github.com/composer/composer/issues/4523#issuecomment-150295708","issue_url":"https://api.github.com/repos/composer/composer/issues/4523","id":150295708,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T17:19:48Z","updated_at":"2015-10-22T17:19:48Z","body":"You just create the plugin and require it as a dependency"}}