pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

composer: 3.0-rc-1 uninstallable with php 8.x #7127

Open montchr opened 1 year ago

montchr commented 1 year ago

Description

I would like to install the Pods v3.0 release candidate. The announcement blog post suggests downloading a zip archive and doing something with it, but I'm using Composer to manage plugins, so that's not really an option[^1]. However, installing Pods with Composer is currently impossible when running PHP 8.x.

$ composer install
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
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 fzaninotto/faker ^1.8 -> satisfiable by fzaninotto/faker[v1.8.0, v1.9.0, v1.9.1, v1.9.2].
    - fzaninotto/faker[v1.8.0, ..., v1.9.2] require php ^5.3.3 || ^7.0 -> your php version (8.1.21) does not satisfy that requirement.
  Problem 2
    - Root composer.json requires spatie/phpunit-snapshot-assertions ^1.4.2 -> satisfiable by spatie/phpunit-snapshot-assertions[1.4.2].
    - spatie/phpunit-snapshot-assertions 1.4.2 requires php ^7.0 -> your php version (8.1.21) does not satisfy that requirement.
  Problem 3
    - phpunit/phpunit[6.5.0, ..., 6.5.14] require php ^7.0 -> your php version (8.1.21) does not satisfy that requirement.
    - Root composer.json requires phpunit/phpunit ^6.5 -> satisfiable by phpunit/phpunit[6.5.0, ..., 6.5.14].

Off the bat, I know that https://github.com/fzaninotto/Faker has been abandoned and archived for years. I'm pretty sure there's a drop-in replacement (or something pretty close to drop-in), but I don't recall how I resolved it last time I ran into that dependency.

Those are just the initial problems I ran into – I expect there would be more after fixing those initially reported. One example I know of that was not reported in the log above is composer/installers. pods-framework/pods requires 1.12.*, but the last version of composer/installers v1.x.x was released in 2021.

[^1]: Unless I were to maybe download the archive, dump it in a git repo, and point Composer to that repo, but that's silly and not worth it when there's a composer.json that should be usable.

Version

3.0-rc-1

Testing Instructions

  1. Use PHP8.1 as CLI (e.g. nix shell nixpkgs#php81 nixpkgs#php81Packages.composer)
  2. git checkout release/3.0
  3. composer install

Screenshots / Screencast

asciicast

Possible Workaround

No response

Site Health Information

No response

Pods Package

No response