Sylius / InvoicingPlugin

Generate an Invoice for every placed order
MIT License
79 stars 82 forks source link

composer require sylius/invoicing-plugin get error #219

Closed imajim closed 2 years ago

imajim commented 3 years ago

Hello,

i've got error when i would install the plugin :

 php composer.phar require sylius/invoicing-plugin
Using version ^0.14.0 for sylius/invoicing-plugin
./composer.json has been updated
Running composer update sylius/invoicing-plugin
Gathering patches for root package.
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 sylius/invoicing-plugin ^0.14.0 -> satisfiable by sylius/invoicing-plugin[v0.14.0].
    - symplify/easy-coding-standard 8.3.48 requires symplify/package-builder ^8.3.48 -> satisfiable by symplify/package-builder[8.3.48].
    - sylius-labs/coding-standard v3.2.2 requires symplify/easy-coding-standard ^7.3 || ^8.1 -> satisfiable by symplify/easy-coding-standard[8.3.48].
    - symplify/package-builder 8.3.48 conflicts with sylius/invoicing-plugin v0.14.0.
    - sylius-labs/coding-standard is locked to version v3.2.2 and an update of this package was not requested.

my composer.json:

{
  "name": "sylius/sylius-standard",
  "description": "Starting point for projects powered by Sylius eCommerce.",
  "keywords": [
    "symfony",
    "sylius",
    "distribution",
    "ecommerce",
    "cart",
    "shopping"
  ],
  "type": "project",
  "license": "MIT",
  "homepage": "https://sylius.com",
  "authors": [
    {
      "name": "Paweł Jędrzejewski"
    },
    {
      "name": "Sylius project"
    },
    {
      "name": "Community contributions"
    }
  ],
  "require": {
    "php": "^7.3",
    "ext-soap": "*",
    "composer/package-versions-deprecated": "1.11.99.1",
    "cweagans/composer-patches": "^1.7",
    "doctrine/doctrine-bundle": "^1.12",
    "doctrine/doctrine-migrations-bundle": "^3.0",
    "doctrine/orm": "^2.7",
    "flux-se/sylius-payum-monetico-plugin": "^1.1",
    "friendsofsymfony/ckeditor-bundle": "^2.2",
    "matomo/device-detector": "^4.2",
    "mpdf/mpdf": "^8.0",
    "sylius/sylius": "~1.8.9",
    "symfony/doctrine-bridge": "4.4.15",
    "symfony/dotenv": "^4.4",
    "symfony/flex": "^1.12",
    "symfony/mailer": "^5.2",
    "symfony/maker-bundle": "^1.30",
    "symfony/proxy-manager-bridge": "^4.4",
    "symfony/webpack-encore-bundle": "^1.11",
    "twig/extensions": "^1.5",
    "twig/inky-extra": "^3.3"
  },
  "require-dev": {
    "behat/behat": "^3.8",
    "behat/mink-selenium2-driver": "^1.4",
    "dmore/behat-chrome-extension": "^1.3",
    "dmore/chrome-mink-driver": "^2.7",
    "friends-of-behat/mink": "^1.9",
    "friends-of-behat/mink-browserkit-driver": "^1.5",
    "friends-of-behat/mink-extension": "^2.5",
    "friends-of-behat/page-object-extension": "^0.3",
    "friends-of-behat/suite-settings-extension": "^1.0",
    "friends-of-behat/symfony-extension": "^2.1",
    "friends-of-behat/variadic-extension": "^1.3",
    "lakion/mink-debug-extension": "^1.2.3",
    "lchrusciel/api-test-case": "^5.1",
    "phpspec/phpspec": "^6.3",
    "phpstan/extension-installer": "^1.0",
    "phpstan/phpstan": "0.12.42",
    "phpstan/phpstan-doctrine": "0.12.19",
    "phpstan/phpstan-webmozart-assert": "0.12.7",
    "phpunit/phpunit": "^8.5",
    "stripe/stripe-php": "^6.43",
    "sylius-labs/coding-standard": "^3.2",
    "symfony/browser-kit": "^4.4",
    "symfony/debug-bundle": "^4.4",
    "symfony/intl": "^4.4",
    "symfony/web-profiler-bundle": "^4.4"
  },
  "conflict": {
    "symfony/form": "4.4.11|4.4.12"
  },
  "prefer-stable": true,
  "autoload": {
    "psr-4": {
      "App\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "App\\Tests\\": "tests/"
    },
    "classmap": [
      "src/Kernel.php"
    ]
  },
  "scripts": {
    "auto-scripts": {
      "cache:clear": "symfony-cmd",
      "assets:install %PUBLIC_DIR%": "symfony-cmd"
    },
    "post-install-cmd": [
      "@auto-scripts"
    ],
    "post-update-cmd": [
      "@auto-scripts"
    ],
    "post-create-project-cmd": [
      "@php bin/console sylius:inform-about-gus --ansi",
      "@php bin/console sylius:show-available-plugins --ansi"
    ]
  },
  "config": {
    "preferred-install": {
      "*": "dist"
    },
    "sort-packages": true
  },
  "extra": {
    "symfony": {
      "allow-contrib": "true"
    },
    "patches": {
      "symfony/maker-bundle": {
        "Provide flag to force annotation in make entity command": "https://raw.githubusercontent.com/vklux/maker-bundle-force-annotation/master/maker-force-annotation-flag.patch"
      }
    }
  }
}
imajim commented 3 years ago

i put directly "sylius/invoicing-plugin": "^0.14.0" in composer.json and i've updated, it's worked.

markjan commented 3 years ago

Yep, directly adding the line to composer.json does work, although it does downgrade the simplify packages to 8.3.24. I think it its to do with the seemingly benign discrepancy in symplify/easy-coding-standard versions:

/srv/sylius # composer why symplify/easy-coding-standard
sylius/sylius-standard       -       requires (for development)  symplify/easy-coding-standard (^8.3)          
sylius-labs/coding-standard  v3.2.2  requires                    symplify/easy-coding-standard (^7.3 || ^8.1)  
GSadee commented 2 years ago

I'm closing the issue as it seems that the problem was with the other dependencies in the end application