Install something through composer and then update to a new version of Joomla
Nothing happens
Vendor folder get cleaned and all what you have installed using composer get deleted.
I have created a composer.json file with all the dependencies needed by Joomla! and everytime I update my site, my dependencies get cleaned and I have to install them again. Deleting the content of vendor folder is not acceptable.
Labels |
Added:
?
|
Title |
|
Category | ⇒ | Libraries |
We are not deleting the library/vendor
directory contents. What happens during the update which is presumably what is messing with your installation is the library/vendor/composer
files are being overwritten, which contains the autoloader files for core and as such your additional libraries are being removed from that.
If you want to use Composer on your site, you'll need to install the dependencies to a different location and register the autoloader for your extra dependencies through a plugin. You should not try to change the libraries/vendor
folder in any way.
Status | New | ⇒ | Information Required |
I am going to close this for the reasons stated above
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-07-27 20:47:37 |
Closed_By | ⇒ | brianteeman |
Please see here: https://docs.joomla.org/J3.x:Using_Composer_with_Joomla
Even that the behavior you are experience is not expected. The only thing that should happen is that all the files shipped by the CMS get overwritten by a update.
Please try to reproduce this in a clean install containing no 3rd party code and place a text file in the vendor folder.