Closed rohit-jiva-ag closed 2 years ago
Please post the error message of composer
Hi @schmengler Thank you for help. I'm getting following error white running composer require. php version 8.1.4 magento version 2.4.4
` composer require --dev tddwizard/magento2-fixtures Info from https://repo.packagist.org: #StandWithUkraine
[InvalidArgumentException]
Package tddwizard/magento2-fixtures has requirements incompatible with your PHP version, PHP extensions and Composer version:
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [
Thanks
Understood. I tagged version 1.1.1 with PHP 8.1 compatibility but packagist was not updated yet. Please try again
Hi @schmengler
Currently getting different error :
composer require --dev tddwizard/magento2-fixtures
Info from https://repo.packagist.org: #StandWithUkraine Using version ^1.1 for tddwizard/magento2-fixtures ./composer.json has been updated Running composer update tddwizard/magento2-fixtures Loading composer repositories with package information In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate Updating dependencies Your requirements could not be resolved to an installable set of packages.
Problem 1
You can also try re-running composer require with an explicit version constraint, e.g. "composer require tddwizard/magento2-fixtures:*" to figure out if any version is installable, or "composer require tddwizard/magento2-fixtures:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I try to install fzaninotto/faker ^1.8.0 It shows following. Updating dependencies Your requirements could not be resolved to an installable set of packages.
Problem 1
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Oh yes, Faker is not maintained anymore and does not support PHP 8. We need to remove or replace this dependency...
=> WIP at #79
I made a mistake when configuring the test Github Action for PHP 8.1 and it actually ran on PHP 7.4 too so I didn't notice :see_no_evil:
=> WIP at #78
Sorry, it will take 1-2 weeks until I have time to finish it, until then there is no PHP 8 compatibility yet
thanks @schmengler :+1:
Hi @schmengler Thanks for looking into this, Is any possibility to release compatible version in this week?
@schmengler Instead of removing faker in #79 we can also replace it with https://github.com/fakerphp/faker that is what laravel is using right now https://twitter.com/taylorotwell/status/1321091021342650377?s=20
@chiragd-evrig thanks for bringing it to my attention, I wasn't aware of an active fork. That should make the backwards compatible replacement easy :+1:
=> #81
Resolved and released: https://github.com/tddwizard/magento2-fixtures/releases/tag/v1.1.2
I just try today by installing tddwizard in magento2.4.4 and php version 8.1
i just seen update of yesterday in github. so today i have checked but not able to install.
It try to install by this command :
composer require --dev tddwizard/magento2-fixtures composer require tddwizard/magento2-fixtures