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

Support Composer API v2.0 #222

Closed
wants to merge 2 commits into from
Closed

Conversation

samuel20miglia
Copy link

@samuel20miglia samuel20miglia commented Apr 27, 2020

Enabled composer ~1.0.0 in order to accept new composer api version.

also not work with composer install --ignore-platform-reqs

resolve issue #218

akeneo | Using version ^0.3.10 for hirak/prestissimo
akeneo | ./composer.json has been created
akeneo | Loading composer repositories with package information
akeneo | Updating dependencies
akeneo | Your requirements could not be resolved to an installable set of packages.
akeneo |
akeneo | Problem 1
akeneo | - Root composer.json requires hirak/prestissimo ^0.3.10 -> satisfiable by hirak/prestissimo[0.3.10].
akeneo | - hirak/prestissimo 0.3.10 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
akeneo | You are using a snapshot build of Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report an issue to them to ask them to support Composer 2. To work around this you can run Composer with --ignore-platform-reqs, but this will also ignore your PHP version and may result in bigger problems down the line.
akeneo | Installation failed, deleting ./composer.json.

Enabled API composer  v2.0 in order to fix version requirements

Here my log:
```
akeneo_1 | Using version ^0.3.10 for hirak/prestissimo
akeneo_1 | ./composer.json has been created
akeneo_1 | Loading composer repositories with package information
akeneo_1 | Updating dependencies
akeneo_1 | Your requirements could not be resolved to an installable set of packages.
akeneo_1 | Problem 1
akeneo_1 | - Root composer.json requires hirak/prestissimo ^0.3.10 -> satisfiable by hirak/prestissimo[0.3.10].
akeneo_1 | - hirak/prestissimo 0.3.10 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
akeneo_1 | You are using a snapshot build of Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report an issue to them to ask them to support Composer 2. To work around this you can run Composer with --ignore-platform-reqs, but this will also ignore your PHP version and may result in bigger problems down the line.
akeneo_1 | Installation failed, deleting ./composer.json.
```
…er-api-v2.0

Enabled composer API constraint
@kubawerlos
Copy link
Contributor

Enabled composer ~1.0.0 in order to accept new composer api version.

Waaat? How?

@samuel20miglia
Copy link
Author

Resolve #218

@samuel20miglia samuel20miglia mentioned this pull request Apr 28, 2020
@kubawerlos
Copy link
Contributor

Resolve #218

But how? How is your change suppose to resolve #218?

@samuel20miglia
Copy link
Author

Good Morning @kubawerlos,

accepting composer's version 1 and 2.

from "composer-plugin-api": "^1.0.0"
to "composer-plugin-api": "~1.0.0"

https://getcomposer.org/doc/articles/versions.md#tilde-version-range-

@kubawerlos
Copy link
Contributor

accepting composer's version 1 and 2.

Once again, how? You know the like to the Composer's documentation about tilde, but seems not to know how it works.

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

Successfully merging this pull request may close these issues.

2 participants