Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cant install ecodev/graphql-upload on php 8 #364

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

Closed
marhub opened this issue Aug 16, 2021 · 4 comments
Closed

Cant install ecodev/graphql-upload on php 8 #364

marhub opened this issue Aug 16, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@marhub
Copy link
Contributor

marhub commented Aug 16, 2021

root@8a81bf3abbf8:/application# composer req ecodev/graphql-upload
Using version ^6.1 for ecodev/graphql-upload
./composer.json has been updated
Running composer update ecodev/graphql-upload
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 ecodev/graphql-upload ^6.1 -> satisfiable by ecodev/graphql-upload[6.1.0].
    - ecodev/graphql-upload 6.1.0 requires webonyx/graphql-php ^14.3 -> found webonyx/graphql-php[v14.3.0, ..., 14.x-dev] but the package is fixed to v0.13.9 (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.

problem seems to be that webonyx is required on ^0.13.4, on the other hand downgrading to ecodev/graphql-upload in version less than 6.1 won't work because 6.1 ist first one to accept PHP v8.

part of composer.json:

"require": {
        "php": ">=8.0.0",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "beberlei/doctrineextensions": "^1.3",
        "beberlei/porpaginas": "^1.2",
        "composer/package-versions-deprecated": "*",
        "doctrine/doctrine-bundle": "^2.3",
        "doctrine/doctrine-migrations-bundle": "^3.1",
        "doctrine/orm": "^2.8",
        "ecodev/graphql-upload": "5",
        "fakerphp/faker": "^1.14",
        "lexik/jwt-authentication-bundle": "^2.11",
        "mockery/mockery": "^1.4",
        "moneyphp/money": "^4.0",
        "myclabs/php-enum": "^1.8",
        "nelmio/cors-bundle": "^2.1",
        "ramsey/uuid": "^4.1",
        "slevomat/coding-standard": "^7.0",
        "symfony/console": "5.2.*",
        "symfony/dotenv": "5.2.*",
        "symfony/flex": "^1.3.1",
        "symfony/framework-bundle": "5.2.*",
        "symfony/http-client": "5.2.*",
        "symfony/mailer": "5.2.*",
        "symfony/monolog-bundle": "^3.7",
        "symfony/proxy-manager-bridge": "5.2.*",
        "symfony/security-bundle": "5.2.*",
        "symfony/yaml": "5.2.*",
        "thecodingmachine/graphqlite-bundle": "^4.1",
        "yohang/finite": "^1.2"
    },
    ```
@marhub
Copy link
Contributor Author

marhub commented Aug 16, 2021

Also for anyone struggling, this seems to be quick fix just for now:
"webonyx/graphql-php": "0.13.9 as 14.3.0",

@oojacoboo
Copy link
Collaborator

oojacoboo commented Aug 17, 2021

Have you tried with webonyx/graphql-php 14.3? I'm assuming there are BC with the 14.0 release.
There is a PR open (#362) to get the CI tests working. Hopefully we can improve on compatibility going forward.

@oojacoboo oojacoboo added the help wanted Extra attention is needed label Aug 17, 2021
@marhub
Copy link
Contributor Author

marhub commented Aug 17, 2021

as i wrote in "quick fix" -> it seems to work with webonyx 14.3, but it cannot be done the clean way because of

"webonyx/graphql-php": "^0.13.4",

@oojacoboo
Copy link
Collaborator

Closing this issue. This should be resolved by #283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants