Replies: 3 comments 10 replies
-
Does the github download even include git submodules? |
Beta Was this translation helpful? Give feedback.
-
As @Flyingmana mentioned, submodules would break composer. So the libraries would have to be both a submodule and in composer.json which creates a problem if they're not kept in sync because bugs could be present in one method of installing but not another. Here's a chart I made that should outline the possible methods we can use: The two columns are using libraries as submodules vs putting them in composer.json. The four rows are the various ways one could obtain OpenMage. So by going the submodule route, we break But in my opinion, |
Beta Was this translation helpful? Give feedback.
-
@addison74 thanks for bringing this up. I was about asking a similiar question - just from another point of view. My questions/suggestion was about to rely on composer (make it mandatory). Would it be a BC break? No. We dropped support for php5 and enforced users to update their env. Why not doing this for composer? During past years i've either seen up-to-date servers (with plesk/cpanel/..., highly configurable, of course with composer) or completly outdated servers, still running on php5, w/o composer ... For every, EVERY, project i had to move to OM, php7.x + composer was a/my requirement. Release builder ... @fballiano i highly appreciate this work, but will it work for different setups? My PR #2340 would require to built three releases (7.0, 7.1., 7.2+). It is certainly possible, but is it worth the effort? |
Beta Was this translation helpful? Give feedback.
-
Parts of OpenMage are more or less active projects on GitHub (ZF1-Future, phpseclib/phpseclib, phpseclib/mcrypt_compat, pear/net_idna2, colinmollenhour/cache-backend-redit, collingmollenhour/magento-redis-session, magento-hackathon/honeyspam, fballiano/openmage-image-cleaner, ...). I would propose a discussion related to the periodic updating of these code parts.
There is Composer whose advantages from the perspective of the PHP programmer I will never deny, but we could analyze another alternative, the use of Git Submodule or Git Subtree.
I would be a supporter of Git Subtree for several reasons. Here are just a few: keeping OpenMage in the initial file structure, so anyone can download it as an archive/clone and use it immediately, without having to install Composer (not everyone has root access, not all system administrators are familiar with it, what happens is something goes wrong with dependencies?).
Beta Was this translation helpful? Give feedback.
All reactions