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

Unsatisfyable composer dependency breaks GitlabCI run #760

Open
wilfriedwolf opened this issue Apr 14, 2022 · 0 comments
Open

Unsatisfyable composer dependency breaks GitlabCI run #760

wilfriedwolf opened this issue Apr 14, 2022 · 0 comments

Comments

@wilfriedwolf
Copy link

Hi there,

just experimenting with dependabot which I find a great tool.

Using a Magento 2.4.2-p2 I notice that the scheduled task will not succeed:

Having

    "require-dev": {
[...]
        "phpunit/phpunit": "^9",
        "sebastian/phpcpd": "~5.0.0",
[...]
    },

as a composer requirement. so sebastian/phpcpd exists in Version 6.0.3.Which can not be used with current phpunit/phpunit.
Which is ok. But instead of skipping this trial the Gitlab-CI Script stops and fails. Which is bad, since the other dependencies will not be checked:

- Updating sebastian/phpcpd (from 5.0.2)…/home/dependabot/.bundle/gems/dependabot-composer-0.142.0/lib/dependabot/composer/file_updater/lockfile_updater.rb:224:in `handle_composer_errors': Your requirements could not be resolved to an installable set of packages. (Dependabot::DependencyFileNotResolvable)
  Problem 1
    - phpunit/phpunit is locked to version 9.1.5 and an update of this package was not requested.
    - sebastian/phpcpd 6.0.3 requires phpunit/php-timer ^5.0 -> satisfiable by phpunit/php-timer[5.0.0, 5.0.1, 5.0.2, 5.0.3].
    - You can only install one version of a package, so only one of these can be installed: phpunit/php-timer[3.1.4, 5.0.0, 5.0.1, 5.0.2, 5.0.3].
    - phpunit/phpunit 9.1.5 requires phpunit/php-timer ^3.1.4 -> satisfiable by phpunit/php-timer[3.1.4].

Is it possible to just catch such exceptions? Or define packges to skip?

Best Regards and Thanks in advance,

Willi

PS: I am using latest docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant