{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5024","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5024/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5024/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5024/events","html_url":"https://github.com/composer/composer/issues/5024","id":139356656,"number":5024,"title":"Skip dependency of a package, or mark a given dependency as already met","user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-03-08T18:33:48Z","updated_at":"2016-03-19T00:09:24Z","closed_at":"2016-03-09T00:20:46Z","body":"I maintain WP-CLI, a command line interface for WordPress similar to Drupal's Drush. In the next release, we're introducing Composer-based package management as a `wp package` command. Here's some of the history: https://github.com/wp-cli/wp-cli/issues/1564\r\n\r\nEssentially, here's what the user can do:\r\n\r\n* `wp package browse` - Browse all packages available in the Package Index http://wp-cli.org/package-index/\r\n* `wp package list` - List locally-installed packages.\r\n* `wp package install <name>` - Install a package from the Package Index.\r\n* `wp package uninstall <name>` - Uninstall an installed package.\r\n\r\n*But*, there's a bit of a problem I've run into (https://github.com/wp-cli/wp-cli/issues/2493). Some of the WP-CLI packages declare `wp-cli/wp-cli` as a dependency. When `wp package install` installs a package with `wp-cli/wp-cli` as a dependency, things generally break. I'd like to skip the `wp-cli/wp-cli` dependency because WP-CLI is already loaded in this context and calling the `vendor/autoload.php` for the locally installed packages.\r\n\r\nWhile I know our use case is atypical and probably falls in the unsupported category, can you think of a reasonable way to skip the `wp-cli/wp-cli` dependency when `Composer\\Installer->run()` is executing?\r\n\r\nConceptually, I'd like to indicate the `wp-cli/wp-cli` dependency as already met. But, I haven't found a clean way to do this.\r\n\r\nThanks in advance for your help."},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/198590034","html_url":"https://github.com/composer/composer/issues/5024#issuecomment-198590034","issue_url":"https://api.github.com/repos/composer/composer/issues/5024","id":198590034,"user":{"login":"curry684","id":1455673,"avatar_url":"https://avatars.githubusercontent.com/u/1455673?v=3","gravatar_id":"","url":"https://api.github.com/users/curry684","html_url":"https://github.com/curry684","followers_url":"https://api.github.com/users/curry684/followers","following_url":"https://api.github.com/users/curry684/following{/other_user}","gists_url":"https://api.github.com/users/curry684/gists{/gist_id}","starred_url":"https://api.github.com/users/curry684/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curry684/subscriptions","organizations_url":"https://api.github.com/users/curry684/orgs","repos_url":"https://api.github.com/users/curry684/repos","events_url":"https://api.github.com/users/curry684/events{/privacy}","received_events_url":"https://api.github.com/users/curry684/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T00:09:24Z","updated_at":"2016-03-19T00:09:24Z","body":"Derp you're right, just about the only place where the default wasn't flipped it seems hehe."}}