Closed pablor closed 8 years ago
Some updates :)
If I execute composer twice, then it works more of less. My repo is copied to /monlog
directory and also it remains in /vendor
directory. The final directory structure is something like that:
|- composer.json
|- composer.lock
|- monolog
| |- test-library (my repo files)
|- vendor
| |- composer
| |- mnsami
| |- monolog
| |- pablor
| |- psr
| |- autoload.php
It's very strange that it works only in the second composer update
...
hello @pablor
sorry it took me time to answer you. But I took your composer.json
content and ran composer install on it, I had no problems finding your repo content inside the monolog folder. In other words, the content of your repo was downloaded successfully in the right directory.
may be something happened during the composer install
?
can you try again and tell me?
thanks
hi @pablor,
you are most likely using an old composer as I had the same before doing composer.phar self-update
kind regards, Bartosz
Hi @pablor
After doing some investigations, you package
is of type project
and composer ProjectInstaller
handles anything with type project
to be installed in the root of clean directory.
Check https://github.com/composer/composer/blob/master/src/Composer/Installer/ProjectInstaller.php#L61
The best thing you can do, is change the type of your composer package to something that the composer installers can handle.
The idea with my plugin here, is to provide customization for the composer installers without altering how composer function or doing some dirty hacks.
Hi @mnsami, Fisrt of all thanks for your work! I'm trying to use your installer and I have some problems. With that
composer.json
everything works OK:The monolog library was placed in the
./monolog
directory as expected. But, if I use my own repo, it doesn't place the pablor/test-library inside the./monolog
directory.Any idea about waht I'm doing wrong? Thanks!