Page MenuHomePhabricator

MediaWiki can start using composer 2.0
Closed, ResolvedPublic

Description

Composer 2.0 is out... https://blog.packagist.com/composer-2-0-is-now-available/

It's already broken a few things. composer-merge-plugin also doesn't support composer 2.0 yet - https://github.com/wikimedia/composer-merge-plugin/issues/184

Vagrant started using the 2.x snapshot: https://gerrit.wikimedia.org/r/636209

[21:02:32] <Dzienny> The "vagrant up" ended with: The SSH command responded with a non-zero exit status. Vagrant
[21:03:46] <Dzienny> Then I grep'ed the output for errors and found: ==> default: Error: /usr/local/bin/composer install --optimize-autoloader --prefer-dist returned 2 instead of one of [0]
[21:03:46] <Dzienny> /usr/local/bin/composer install --optimize-autoloader --prefer-dist returned 2 instead of one of [0]

Vendor comment left in: https://gerrit.wikimedia.org/r/c/mediawiki/vendor/+/636210

We should make sure things are documented to only use 1.x, until necessary changes and updates have been made across the board

Event Timeline

Change 641005 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/core@master] Force composer 1.x in travis CI

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

Change 640765 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/core@REL1_35] build: Force composer 1.x in Travis CI

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

Change 641026 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/core@REL1_31] build: Force composer 1.x in Travis CI

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

Change 640765 merged by jenkins-bot:
[mediawiki/core@REL1_35] build: Force composer 1.x in Travis CI

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

Change 641005 merged by jenkins-bot:
[mediawiki/core@master] build: Force composer 1.x in Travis CI

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

Change 641026 merged by jenkins-bot:
[mediawiki/core@REL1_31] build: Force composer 1.x in Travis CI

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

Kghbln removed a subscriber: Kghbln.
Kghbln added a subscriber: Kghbln.

Change 670537 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/core@master] Revert "build: Force composer 1.x in Travis CI"

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

Change 673124 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/core@REL1_35] Revert "build: Force composer 1.x in Travis CI"

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

Change 673124 merged by jenkins-bot:
[mediawiki/core@REL1_35] Revert "build: Force composer 1.x in Travis CI"

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

Change 670537 merged by jenkins-bot:
[mediawiki/core@master] Revert "build: Force composer 1.x in Travis CI"

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

Reedy renamed this task from MediaWiki shouldn't use composer 2.0 (yet) to MediaWiki can start using composer 2.0.Apr 11 2021, 2:50 PM
Reedy claimed this task.