You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a best practise, we delete the vendor/magento/magento2-base module when deploying a Magento shop to a server.
The code in this module is not used when running a Magento shop, its only purpose is to copy files inside it to the root of the project using a composer plugin. But when that is finished, it serves no longer a purpose anymore. So we remove this module always in order to save disk space.
However, it looks like your module relies on the composer.json file to exist in vendor/magento/magento2-base to figure out the current Magento version, this is done over here:
Is there a chance you could try to revert back to using $productMetadata->getVersion() as mentioned in the comments. It is slower indeed, but Magento seems to have fixed some slowness that was reported. This should be faster now in Magento 2.4.0 and higher by magento/magento2#24030 and magento/magento2#26001.
Would you consider trying to remove the reliance on the vendor/magento/magento2-base module from this module? Or maybe add a fallback for when that vendor/magento/magento2-base/composer.json file is not found to still use $productMetadata->getVersion()? That would be appreciated 🙂
Thanks!
The text was updated successfully, but these errors were encountered:
That's an interesting note you make there about magento2-base. I had not heard that before.
Since speed is essential to the module, I am not happy with anything that slows it down. But providing a fallback is perfectly acceptable, of course. I will add it somewhere in the next few weeks.
Hi guys!
As a best practise, we delete the
vendor/magento/magento2-base
module when deploying a Magento shop to a server.The code in this module is not used when running a Magento shop, its only purpose is to copy files inside it to the root of the project using a composer plugin. But when that is finished, it serves no longer a purpose anymore. So we remove this module always in order to save disk space.
However, it looks like your module relies on the
composer.json
file to exist invendor/magento/magento2-base
to figure out the current Magento version, this is done over here:product-import/Model/Resource/MetaData.php
Line 422 in 9420451
Is there a chance you could try to revert back to using
$productMetadata->getVersion()
as mentioned in the comments. It is slower indeed, but Magento seems to have fixed some slowness that was reported. This should be faster now in Magento 2.4.0 and higher by magento/magento2#24030 and magento/magento2#26001.Would you consider trying to remove the reliance on the
vendor/magento/magento2-base
module from this module? Or maybe add a fallback for when thatvendor/magento/magento2-base/composer.json
file is not found to still use$productMetadata->getVersion()
? That would be appreciated 🙂Thanks!
The text was updated successfully, but these errors were encountered: