Page MenuHomePhabricator

Work out why composer/platform_check.php gets added/deleted by different people
Closed, ResolvedPublic

Description

Not sure if it's environment, config or whatever... But composer/platform_check.php seems to come and go.

Might need a Documentation fix or similar

Event Timeline

This is caused by passing the --ignore-platform-reqs flag in composer 2.x. Previously we (I) have been using this to allow building on PHP 8.0 or whatever without it whining, but now it appears to be not just a build-time flag but also a run-time one. Joy.

Change 730216 had a related patch set uploaded (by Reedy; author: Jforrester):

[mediawiki/vendor@master] README: Advise people to run without skipping platform reqs

https://gerrit.wikimedia.org/r/730216

Change 730216 merged by jenkins-bot:

[mediawiki/vendor@master] README: Advise people to run without skipping platform reqs

https://gerrit.wikimedia.org/r/730216

Reedy assigned this task to Jdforrester-WMF.
Reedy edited projects, added: Documentation; removed: Patch-For-Review.

Can we disable this check? We already tightly monitor PHP version and check it in MediaWiki, with a much better error message.

Can we disable this check? We already tightly monitor PHP version and check it in MediaWiki, with a much better error message.

https://github.com/composer/composer/blob/c90cd6f640110f9b03694decb995019b7d817e15/doc/07-runtime.md#platform-check

If you for some reason do not want to use this safety check, and would rather risk runtime errors when your code executes, you can disable this by setting the platform-check config option to false.

https://github.com/composer/composer/blob/c90cd6f640110f9b03694decb995019b7d817e15/doc/06-config.md#platform-check

Change 730240 had a related patch set uploaded (by Reedy; author: Jforrester):

[mediawiki/vendor@REL1_37] README: Advise people to run without skipping platform reqs

https://gerrit.wikimedia.org/r/730240

Change 730241 had a related patch set uploaded (by Reedy; author: Jforrester):

[mediawiki/vendor@REL1_36] README: Advise people to run without skipping platform reqs

https://gerrit.wikimedia.org/r/730241

Change 730242 had a related patch set uploaded (by Reedy; author: Jforrester):

[mediawiki/vendor@REL1_35] README: Advise people to run without skipping platform reqs

https://gerrit.wikimedia.org/r/730242

Change 730242 merged by Reedy:

[mediawiki/vendor@REL1_35] README: Advise people to run without skipping platform reqs

https://gerrit.wikimedia.org/r/730242

Change 730241 merged by Reedy:

[mediawiki/vendor@REL1_36] README: Advise people to run without skipping platform reqs

https://gerrit.wikimedia.org/r/730241

Change 730240 merged by Reedy:

[mediawiki/vendor@REL1_37] README: Advise people to run without skipping platform reqs

https://gerrit.wikimedia.org/r/730240