BrainMaestro / composer-git-hooks

Easily manage git hooks in your composer config
MIT License
1.05k stars 87 forks source link

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

Open j23063519 opened 1 year ago

j23063519 commented 1 year ago

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

Problem 1

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?

BrainMaestro commented 1 year ago

Can you try v3.0.0-alpha.1

bradycharron commented 1 year ago

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
marcosfreitas commented 1 year ago

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

vardumper commented 1 year ago

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.