?
avatar HermanPeeren
HermanPeeren
2 Mar 2015

Steps to reproduce the issue

When an installed extension uses a library that is installed via composer into /libraries/vendor, then an upgrade to Joomla 3.4.0 overwrites autoload.php and the /composer folder. The earlier installed extension doesn't work anymore.

Expected result

When updating Joomla an existing library that is installed with composer should still work.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar HermanPeeren HermanPeeren - open - 2 Mar 2015
avatar brianteeman brianteeman - change - 2 Mar 2015
Labels Added: ?
avatar mbabker
mbabker - comment - 2 Mar 2015

We aren't yet at a point where this is a feasible workflow. We aren't shipping the composer.json or composer.lock files with production packages and when we run updates for core, these files get regenerated for the core dependencies. I'm not sure what we can do short of pulling the full Composer API in as a dependency right now.

My workaround in the first extension I integrated Composer into is to just ship the extension with its own /vendor directory and Composer autoloader and load that within the extension (since the extension doesn't have any external uses like plugins where the objects may need to be present I can safely not merge this data to the base autoloader).

avatar HermanPeeren
HermanPeeren - comment - 2 Mar 2015

Yes, I'll change my Composer stuff, although it was working for some years now. Should have tested this 3.4 update first on a non-production server. Bummer.

I assume Joomla 3.4 uses this and it is not just for future use, so it would probably break something in Joomla if I would overwrite those files with my old ones. I'll try, but if you can tgell it, it saves me some trouble to try. Thanks for the reaction anyway.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6260.
avatar HermanPeeren
HermanPeeren - comment - 2 Mar 2015

I'll make my own folder in /libraries and put my /vendor and other composer stuff in that. But I have the feeling it is the opposite of what the intention of composer was.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6260.
avatar HermanPeeren
HermanPeeren - comment - 2 Mar 2015

Issue can be closed.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6260.
avatar mbabker
mbabker - comment - 2 Mar 2015

Eventually the intent is to make that integratable with extensions. Just not quite there yet.

avatar mbabker mbabker - change - 2 Mar 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-03-02 17:41:17
avatar mbabker mbabker - close - 2 Mar 2015

Add a Comment

Login with GitHub to post a comment