Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] requirements could not be resolved to an installable set of packages #3

Closed
diractorhm opened this issue Oct 22, 2024 · 2 comments · Fixed by #4 or #5
Closed

[BUG] requirements could not be resolved to an installable set of packages #3

diractorhm opened this issue Oct 22, 2024 · 2 comments · Fixed by #4 or #5
Assignees
Labels
bug Something isn't working

Comments

@diractorhm
Copy link

Describe the bug

When I try to install the package into an existing laravel project by running composer require horstoeko/zugferd-laravel I get the following error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires horstoeko/zugferd-laravel * -> satisfiable by horstoeko/zugferd-laravel[v1.0.0, v1.0.1, v1.0.2, v1.0.3].
    - horstoeko/zugferd-laravel[v1.0.0, ..., v1.0.3] require symfony/yaml ^5.3|^6.0 -> found symfony/yaml[v5.3.0, ..., v5.4.44, v6.0.0, ..., v6.4.12] but the package is fixed to v7.1.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require horstoeko/zugferd-laravel:*" to figure out if any version is installable, or "composer require horstoeko/zugferd-laravel:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

To Reproduce

  1. Start a new laravel project using the latest version, i.e. by using docker
  2. Then try to install the package by running ./vendor/bin/sail composer require horstoeko/zugferd-laravel

Expected behavior

I would have expected that the package runs with the latest version of laravel and its dependencies.

Additional information:

  • OS: macOS
  • OS-Version: 14.6.1
  • PHP-Version: 8.3
@diractorhm diractorhm added the bug Something isn't working label Oct 22, 2024
@horstoeko
Copy link
Owner

Hi @diractorhm,

thank you for your issue. I will provide a fix as soon I get the time to do that.

Kind regards

horstoeko added a commit that referenced this issue Oct 22, 2024
#3 Fixed dependency symfony/yaml, Allow version 7.x
horstoeko pushed a commit that referenced this issue Oct 22, 2024
horstoeko added a commit that referenced this issue Oct 22, 2024
@diractorhm
Copy link
Author

Cool, thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants