?
avatar vistiyos
vistiyos
27 Jul 2017

Steps to reproduce the issue

Install something through composer and then update to a new version of Joomla

Expected result

Nothing happens

Actual result

Vendor folder get cleaned and all what you have installed using composer get deleted.

System information (as much as possible)

Additional comments

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.

avatar vistiyos vistiyos - open - 27 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Jul 2017
avatar vistiyos vistiyos - change - 27 Jul 2017
Title
Composer
Updating Joomla removes libraries installed using Composer
avatar vistiyos vistiyos - edited - 27 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Jul 2017
Category Libraries
avatar zero-24
zero-24 - comment - 27 Jul 2017

Please see here: https://docs.joomla.org/J3.x:Using_Composer_with_Joomla

Can you install any extra libraries via Composer?

Not at the moment in Joomla! 3.4. In the longer term it is the CMS's aim that you can download extra packages. To emphasize this, we will not yet be releasing the composer.json file within the main Joomla! download.

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.

avatar mbabker
mbabker - comment - 27 Jul 2017

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.

avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Jul 2017
Status New Information Required
avatar brianteeman
brianteeman - comment - 27 Jul 2017

I am going to close this for the reasons stated above

avatar brianteeman brianteeman - change - 27 Jul 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-07-27 20:47:37
Closed_By brianteeman
avatar brianteeman brianteeman - close - 27 Jul 2017

Add a Comment

Login with GitHub to post a comment