Giter VIP home page Giter VIP logo

Comments (8)

sprankhub avatar sprankhub commented on July 26, 2024 1

Confirming that this fixed the issue. Re-requiring the module now installed v2.1.2. Thanks, @fredden!

from magento2-cronjobmanager.

lewisje avatar lewisje commented on July 26, 2024

On a related note, when I tried running composer require on a Magento 2.4.0 installation on PHP 7.3, I still got the suggested version constraint of ^2.1, even though symfony/console is version-locked there too; I ended up picking ^1.14 and then it installed. (1.15 also has a hard-coded dependency on symfony/console 5 or higher and requires the same sort of patch.)

from magento2-cronjobmanager.

fredden avatar fredden commented on July 26, 2024

On a related note, when I tried running composer require on a Magento 2.4.0 installation on PHP 7.3, I still got the suggested version constraint of ^2.1, even though symfony/console is version-locked there too; I ended up picking ^1.14 and then it installed. (1.15 also has a hard-coded dependency on symfony/console 5 or higher and requires the same sort of patch.)

@lewisje what version of Composer are you using? Version 2.5.0 comes with an improvement to the version-finding algorithm.

from magento2-cronjobmanager.

fredden avatar fredden commented on July 26, 2024

A quick look suggests this constraint was introduced to composer.json in #189, which landed in v1.15.0. This means that all versions before this shouldn't suffer from this constraint (although they do have an undeclared dependency on symfony/console).

The supported versions matrix does list version 1.15.0 for Magento 2.4.6 as the lowest supported version, but all prior versions of Magento have a lower minimum version number.

from magento2-cronjobmanager.

fredden avatar fredden commented on July 26, 2024

I think I've worked out what's gone wrong here. For some reason the 1.x branch was been tagged as version 2.1.0 by mistake. I've now tagged the 1.x branch as 1.16.0 and the head of the 2.x branch as 2.1.1. Version 2.1.0 shouldn't be compatible with Magento versions below 2.4.4 (ref https://github.com/Ethan3600/magento2-CronjobManager/tree/2.x#support).

I'd like to delete version 2.1.0, but I don't think semver allows this.

from magento2-cronjobmanager.

sprankhub avatar sprankhub commented on July 26, 2024

That does not fix the issue for me, @fredden. I use 2.4.5-p3, which should be compatible with version 2 according to the README. However, Magento 2.4.5-p3 seems to require symfony/console version 4.

$ composer why-not ethanyehuda/magento2-cronjobmanager 2
magento/project-community-edition   2.4.5-p3 requires         ethanyehuda/magento2-cronjobmanager (^1.14) 
ethanyehuda/magento2-cronjobmanager 2.0.0    requires         symfony/console (^5.0)                      
magento/project-community-edition   2.4.5-p3 does not require symfony/console (but v4.4.49 is installed)  
Not finding what you were looking for? Try calling `composer update "ethanyehuda/magento2-cronjobmanager:2" --dry-run` to get another view on the problem.

And

$ composer why-not symfony/console 5
friendsofphp/php-cs-fixer                     v3.4.0     requires  symfony/console (^4.4.20 || ^5.1.3 || ^6.0) 
magento/composer                              1.8.0      requires  symfony/console (~4.4.0)                    
magento/framework                             103.0.5-p3 requires  symfony/console (~4.4.0)                    
magento/magento2-base                         2.4.5-p3   requires  symfony/console (~4.4.0)                    
magento/magento2-functional-testing-framework 3.10.2     requires  symfony/console (^4.4||^5.4)                
magento/product-community-edition             2.4.5-p3   requires  symfony/console (~4.4.0)                    
symfony/http-kernel                           v4.4.50    conflicts symfony/console (>=5)                       
symfony/console                               v5.0.0     requires  php (^7.2.5 but 8.1.17 is installed)        
Not finding what you were looking for? Try calling `composer update "symfony/console:5" --dry-run` to get another view on the problem.

from magento2-cronjobmanager.

fredden avatar fredden commented on July 26, 2024

Thanks for following up @sprankhub. I've reviewed and tested and merged #198, and released this as version 1.16.1 (and merged into the 2.x branch and tagged as 2.1.2). Please can you test and report back?

from magento2-cronjobmanager.

lewisje avatar lewisje commented on July 26, 2024

On a related note, when I tried running composer require on a Magento 2.4.0 installation on PHP 7.3, I still got the suggested version constraint of ^2.1, even though symfony/console is version-locked there too; I ended up picking ^1.14 and then it installed. (1.15 also has a hard-coded dependency on symfony/console 5 or higher and requires the same sort of patch.)

@lewisje what version of Composer are you using? Version 2.5.0 comes with an improvement to the version-finding algorithm.

I use 1.10.22 and do not have the level of access needed to upgrade Composer, or else I would have upgraded it years ago.

from magento2-cronjobmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.