https://bugzilla.wikimedia.org/show_bug.cgi?id=65188

--- Comment #2 from Matt Walker <[email protected]> ---
Per Jeroen, we need to have the ability for end users (using the tarball or
otherwise) to `composer require $package` without having to manually run
through a horrible merge on update of mediawiki core.

However, core requires composer because we're now starting to pull in external
dependencies (like MonoLog / PSR3 logging). This requires that core have a
composer.json file!

We've resolved that the installer and the update scripts need to be aware of
composer.json files and be able to merge new with old.

We've also resolved that it is undesirable to ship a composer.json file with
the tarball. Though; it was not agreed on if having it in git was acceptable.
(See https://gerrit.wikimedia.org/r/#/c/132788/).

It seems that the path forward is to write a hopefully simple stub around
composer in the install and update scripts. This stub would merge the core
dependencies file (I propose composer.core.json) into a non versioned
composer.json. Then, the scripts would either run composer update or leave that
up to the end user.

We've resolved that so long as mediawiki does a best effort to merge the files
that it is up to the end user to resolve any version dependency problems.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to