andres-montanez / Magallanes

The PHP Deployment Tool
https://magephp.com
MIT License
691 stars 169 forks source link

Cannot install in Symfony 5 project because of console dependency #443

Closed jahrralf closed 3 years ago

jahrralf commented 4 years ago

Hi, I am trying to include Magallanes in a symfony 5 project. This comes with symfony/console 5.0 which is higher than the 4.0 required by Magallanes. How can I solve this? Is there any way to build/get a phar? Would help here. Thanks!

        "symfony/console": "5.0.*",
$ php composer.phar require andres-montanez/magallanes
Using version ^4.0 for andres-montanez/magallanes
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for andres-montanez/magallanes ^4.0 -> satisfiable by andres-montanez/magallanes[4.0.0].
    - andres-montanez/magallanes 4.0.0 requires symfony/console ^4.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
vgross commented 4 years ago

Same issue here, did you find a solution by any chance?

jahrralf commented 4 years ago

No - lost my interest, no good solution so far.

hauke68 commented 4 years ago

I fixed that and created a PR. The fix works here in our environment, but better should be tested by other developers.

ElGittoJunior commented 4 years ago

I fixed that and created a PR. The fix works here in our environment, but better should be tested by other developers.

Thats awesome, could you please add it to Packagist so it can be installed using composer require hauke68/magallanes? Thank you

Nevermind could not wait, I did it myself. Feel free to use it too:

composer require el-gitto-junior/magallanes:4.0.1-alpha-2

hauke68 commented 4 years ago

Well, give me some time to prepare and deploy a release. I am currently busy at work. Good you deployed the alpha release ;-)

ElGittoJunior commented 4 years ago

I was able to deploy Symfony 5.1.5 with it. As far working like a charm. Thank you! I did the alpha release because I was in a hurry, and I need to run composer. But it's your work and I would switch to your version.

hauke68 commented 4 years ago

@ElGittoJunior Released on Packagist ;-)

ElGittoJunior commented 4 years ago

@hauke68 Thank you! I switched to your version. Works fine so far!

freebuu commented 3 years ago

in 4.1.0 symfony5 is supported