composer / composer

Dependency Manager for PHP
https://getcomposer.org/
MIT License
28.5k stars 4.53k forks source link

Dependencies which are not for the package is shown on depends #1157

Closed harikt closed 11 years ago

harikt commented 11 years ago

More dependencies which are not used in composer.json of the package itself by composer is shown.

$ php composer.phar depends --link-type="require" aura/http
aura/framework
coss/bnetlib
hari/aura-system

php composer.phar depends aura/filter
hari/aura-system

Some of the examples.

igorw commented 11 years ago

Not sure what you are expecting here. The depends command shows which packages depend on a given package.

So now you know that hari/aura-system depends on both aura/http and aura/filter.

Am I missing something?

harikt commented 11 years ago

oh sorry then. I thought that the aura/http is depending on it :( . Thanks for the correction @igorw :) .

stof commented 11 years ago

To see the dependencies of a package, use composer show. It is dispayed there (with some other information)

harikt commented 11 years ago

Thanks @stof . It did displayed a huge list . Probably I should give the name also after the show command.

stof commented 11 years ago

@harikt indeed. Otherwise, it only shows the list :)

harikt commented 11 years ago

aah it shows the composer.json values :) .

Thank you for the tip.