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

Dependency mindplay/composer-locator doesn't work with composer 2.x #4

Closed
MekDrop opened this issue Nov 12, 2020 · 3 comments
Closed

Comments

@MekDrop
Copy link
Contributor

MekDrop commented Nov 12, 2020

Running composer update I got this error:

./composer.json has been updated
Running composer update league/event
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mindplay/composer-locator 2.1.3 requires composer-plugin-api ^1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - middlewares/referrer-spam v2.0.0 requires mindplay/composer-locator ^2.1 -> satisfiable by mindplay/composer-locator[2.1.3].
    - middlewares/referrer-spam is locked to version v2.0.0 and an update of this package was not requested.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

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

It seems its problem with one of referrer-spam dependencies.

Any idea how to fix it?

@oscarotero
Copy link
Member

I think this should be fixed in composer-locator package: https://github.com/mindplay-dk/composer-locator

@mindplay-dk What do you think? Could you update composer-locator to work with composer 2?

@MekDrop
Copy link
Contributor Author

MekDrop commented Nov 13, 2020

I made mindplay-dk/composer-locator#8 a pull request for this dependency. Maybe this helps this a bit faster to solve this problem :|

@oscarotero
Copy link
Member

Finally I released a new version without this dependency https://github.com/middlewares/referrer-spam/blob/master/src/ReferrerSpam.php#L114 (and PHP 8 support).

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

2 participants