mage-os/mageos-magento2

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

ProxiBlue opened this issue · 1 comments

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

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

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.