ostark / craft-async-queue

Async Queue Handler for Craft 3 and 4
MIT License
93 stars 7 forks source link

ostark/craft-async-queue 3.1.0 requires symfony/process ^5.0 #65

Closed anchovy closed 1 year ago

anchovy commented 1 year ago

Hi

Just tried to install this on a fresh craft v4 install and it's failing due to an issue with the symfony/process version. Don't particularly want to downgrade symfony/process to install, any ideas?

composer require ostark/craft-async-queue                
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^3.1 for ostark/craft-async-queue
./composer.json has been updated
Running composer update ostark/craft-async-queue
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires ostark/craft-async-queue ^3.1 -> satisfiable by ostark/craft-async-queue[3.1.0].
    - ostark/craft-async-queue 3.1.0 requires symfony/process ^5.0 -> found symfony/process[v5.0.0, ..., v5.4.11] but the package is fixed to v6.0.11 (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.

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 ostark/craft-async-queue:*" to figure out if any version is installable, or "composer require ostark/craft-async-queue:^2.1" if you know which you need.

composer.json

{
  "require": {
    "craftcms/cms": "^4.3.5",
    "mmikkel/cp-field-inspect": "^1.4",
    "verbb/super-table": "^3.0",
    "vlucas/phpdotenv": "^5.4.0"
  },
  "require-dev": {
    "craftcms/generator": "^1.0.0",
    "yiisoft/yii2-shell": "^2.0.3"
  },
  "autoload": {
    "psr-4": {
      "modules\\": "modules/"
    }
  },
  "config": {
    "allow-plugins": {
      "craftcms/plugin-installer": true,
      "yiisoft/yii2-composer": true
    },
    "sort-packages": true,
    "optimize-autoloader": true,
    "platform": {
      "php": "8.0.2"
    }
  },
  "scripts": {
    "post-root-package-install": [
      "@php -r \"file_exists('.env') || copy('.env.example.dev', '.env');\""
    ]
  }
}
cole007 commented 1 year ago

Would echo this.

@anchovy are you using Blitz?

I was wondering if there is a conflict of dependencies with another plugin. I looked at other vendor files that seem to require symfony/process and the only one that seems to be forcing v6 is symplify/git-wrapper which is required by Craft Blitz (putyourlightson/craft-blitz).

I was able to install the Aysnc plugin by doing the following:

  1. Removing Blitz via the CP (uninstall then remove)
  2. Downgrading Symfony to 5.0 composer require symfony/process:^5.0
  3. Installing Aysnc Plugin composer require ostark/craft-async-queue -w && php craft plugin/install async-queue
  4. Installing Craft CMS composer require putyourlightson/craft-blitz -w && php craft plugin/install blitz

Cole

engram-design commented 1 year ago

Also seeing this, thanks @cole007 for the instructions that do work.

Probably need to loosen the symfony/process requirements to:

"symfony/process": "^5.0 || ^6.0"