yii-starter-kit / yii2-starter-kit

Yii2 Starter Kit
http://yii2-starter-kit.terentev.net
Other
1.42k stars 648 forks source link

Issue with asofter/yii2-imperavi-recactor dependency doesn't let me require anything new in composer #767

Closed gvlasov closed 3 years ago

gvlasov commented 3 years ago

When I try to add any dependency in a project created from this starter kit, composer has an issue with asofter/yii2-imperavi-redactor dependency. Only when I composer update asofter/yii2-imperavi-redactor it picks up a correct version of the dependency from https://github.com/asofter/yii2-imperavi-redactor (it is not published in packagist and has probably messed up its versioning some time in the past). Please do the same update to adjust the composer.lock of this starter kit so this dependency is picked up from the correct commit from https://github.com/asofter/yii2-imperavi-redactor.

XzAeRo commented 3 years ago

This is weird, since the composer lock points to the latest commit in that project.

Are you installing using composer install? Are you maybe using the old, and deprecated fxp/composer-asset-plugin?

If you could provide some logs, that would be great.

gvlasov commented 3 years ago

@XzAeRo Here is the log:

chriego@manjaro ~> git clone https://github.com/yii2-starter-kit/yii2-starter-kit
Cloning into 'yii2-starter-kit'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 15611 (delta 0), reused 0 (delta 0), pack-reused 15608
Receiving objects: 100% (15611/15611), 17.82 MiB | 8.21 MiB/s, done.
Resolving deltas: 100% (8686/8686), done.
chriego@manjaro ~> cd yii2-starter-kit/
chriego@manjaro ~/yii2-starter-kit (master) [1]> composer require lstrojny/functional-php --ignore-platform-reqs
The "fxp/composer-asset-plugin" plugin (installed globally) was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Using version ^1.15 for lstrojny/functional-php
./composer.json has been updated
The "fxp/composer-asset-plugin" plugin (installed globally) was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Running composer update lstrojny/functional-php
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires asofter/yii2-imperavi-redactor >=0.0.3@dev, found asofter/yii2-imperavi-redactor[dev-master, 0.0.3] but it conflicts with another require.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

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