composer-git-hooks icon indicating copy to clipboard operation
composer-git-hooks copied to clipboard

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

Open j23063519 opened this issue 3 years ago • 4 comments
trafficstars

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

Problem 1 - brainmaestro/composer-git-hooks[v2.8.0, ..., v2.8.2] require symfony/console ^3.2 || ^4.0 -> found symfony/console[v3.2.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v6.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. - brainmaestro/composer-git-hooks[v2.8.3, ..., v2.8.5] require symfony/console ^3.2 || ^4.0 || ^5.0 -> found symfony/console[v3.2.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but the package is fixed to v6.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. - Root composer.json requires brainmaestro/composer-git-hooks ^2.8 -> satisfiable by brainmaestro/composer-git-hooks[v2.8.0, ..., v2.8.5].

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 brainmaestro/composer-git-hooks:*" to figure out if any version is installable, or "composer require brainmaestro/composer-git-hooks:^2.1" if you know which you need.

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

How can I solve this problem in laravel 9 and php 8?

j23063519 avatar Oct 04 '22 01:10 j23063519

Can you try v3.0.0-alpha.1

BrainMaestro avatar Mar 02 '23 10:03 BrainMaestro

I ran into this too. Tried the alpha release as requested, and it installed without error.

composer require --dev brainmaestro/composer-git-hooks:v3.0.0-alpha.1

bradycharron avatar Mar 08 '23 18:03 bradycharron

Hey, there are any foresight for a stable release that covers this error?

marcosfreitas avatar Apr 21 '23 00:04 marcosfreitas

I can report that that once I install this alpha and run composer update, it doesn't seem to create the expected files inside .git/hooks so basically the package has no effect.

vardumper avatar Jun 30 '23 18:06 vardumper