johnpbloch / wordpress

A fork of WordPress with Composer support added. Branches, tags, and trunk synced from upstream every 15 minutes.
https://packagist.org/packages/johnpbloch/wordpress
602 stars 102 forks source link

johnpbloch/wordpress 5.2.1 requires php 5.3.2 -> your PHP version (7.2.16) does not satisfy that requirement #44

Closed archon810 closed 5 years ago

archon810 commented 5 years ago

Hi,

Trying to update to 5.2.1 today, and getting this issue:

Problem 1
    - Installation request for johnpbloch/wordpress 5.2.1 -> satisfiable by johnpbloch/wordpress[5.2.1].
    - johnpbloch/wordpress 5.2.1 requires php 5.3.2 -> your PHP version (7.2.16) does not satisfy that requirement.

Any idea why?

Thanks.

archon810 commented 5 years ago

How did this happen? I see the problem.

5.2.0: https://packagist.org/packages/johnpbloch/wordpress#5.2.0

requires

php: >=5.3.2

5.2.1: https://packagist.org/packages/johnpbloch/wordpress#5.2.1

requires

php: 5.3.2
johnpbloch commented 5 years ago

@archon810 Thanks for bringing this to my attention. As a temporary workaround, you can change the dependency to johnpbloch/wordpress:5.2.x-dev, as it's not affected by this problem. I'll be pushing out updates soon, but this is a result of the build script not including the >= for this repo.

szepeviktor commented 5 years ago

@johnpbloch Could you move the 5.2.1 tag?

szepeviktor commented 5 years ago
$ composer require johnpbloch/wordpress:5.2.x-dev
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for johnpbloch/wordpress 5.2.x-dev -> satisfiable by johnpbloch/wordpress[5.2.x-dev].
    - johnpbloch/wordpress 5.2.x-dev requires johnpbloch/wordpress-core 5.2.x-dev -> satisfiable by johnpbloch/wordpress-core[5.2.x-dev] but these conflict with your requirements or minimum-stability.

Installation failed, deleting ./composer.json.
rfair404 commented 5 years ago

I too am having this issue.

  Problem 1
    - Installation request for johnpbloch/wordpress 5.2.1 -> satisfiable by johnpbloch/wordpress[5.2.1].
    - johnpbloch/wordpress 5.2.1 requires php 5.3.2 -> your PHP version (7.1.23) does not satisfy that requirement.
kraftner commented 5 years ago

@szepeviktor I guess the issue for you is minimum-stability in your root composer.json since you're trying to install a dev dependency.

szepeviktor commented 5 years ago

@kraftner Thanks.

./composer.json has been created

I am trying without an existing composer.json.

Try running composer require johnpbloch/wordpress:5.2.x-dev in an empty dir yourself!

Rarst commented 5 years ago

A quick override without package change composer update --no-dev --ignore-platform-req

PS btw PHP 5.3.2 is also outdated on WP 5.2.*, should be >=5.6.20

ihorvorotnov commented 5 years ago

A quick override without package change composer update --no-dev --ignore-platform-req

Great tip, completely forgot about it! Although it's --ignore-platform-reqs (ends with s, plural form) :)

johnpbloch commented 5 years ago

Ok, sorry for the delay here. I just pushed a commit that sets php requirements for 5.2.1 to the correct >=5.6.20 and update the 5.2.1 tag to point to the updated commit. Composer update and install procedures should work as expected without work-arounds going forward. The underlying cause has been addressed in the build repo, so it won't be re-appearing.

johnpbloch commented 5 years ago

(I should also note that I had to go into packagist and manually update the repo, so there might be some delay getting the updated manifest into your pipelines.)