mage-os / mageos-magento2

Work in progress.
Open Software License 3.0
208 stars 41 forks source link

n98-magerun2 cli tool can not be used due to version mismatch #73

Closed ProxiBlue closed 9 months ago

ProxiBlue commented 9 months ago

Summary

Due to the fact that Mage-OS is reporting version 1.0.1 (ref: Magento\Framework\App\ProductMetadata:::getVersion), n98 magerun will not work.

It may be a problem if mage-OS starts reporting that it is before latest magento 2. - 1 < 2 /:

08:24 $ ./n98-magerun2.phar db:dump --compression=gzip ../db_dumps/base_install.sql

You are running an incompatible version of n98-magerun2!
Your shop version has to be >2.3.0

Current Magento Version     : 1.0.1
Current n98-magerun2 Version: 7.1.0

Please download an older version of n98-magerun2.

Visit: https://files.magerun.net/old_versions.php

    Magento 2.2.x => n98-magerun2 v3.2.0
    Magento 2.1.x => n98-magerun2 v3.2.0
    Magento 2.0.x => n98-magerun2 v2.3.3

✘-1 /vagrant/sites/ntotank/bin [mageos L|● 46✚ 77…6]

Examples

08:24 $ ./n98-magerun2.phar db:dump --compression=gzip ../db_dumps/base_install.sql

You are running an incompatible version of n98-magerun2! Your shop version has to be >2.3.0

Current Magento Version : 1.0.1 Current n98-magerun2 Version: 7.1.0

Please download an older version of n98-magerun2.

Visit: https://files.magerun.net/old_versions.php

Magento 2.2.x => n98-magerun2 v3.2.0
Magento 2.1.x => n98-magerun2 v3.2.0
Magento 2.0.x => n98-magerun2 v2.3.3

✘-1 /vagrant/sites/ntotank/bin [mageos L|● 46✚ 77…6]

Proposed solution

Reconsider versioning, or change the getVersion routine to accommodate the potential that 1 < 2

Release note

No response

Triage and priority

ProxiBlue commented 9 months ago

n98-magerun2-7.2.0.phar (https://files.magerun.net/n98-magerun2-7.2.0.phar) solves the issue, but is not noted a a current / or released version yet.