Page MenuHomePhabricator

Composer should set the git origin to gerrit
Open, Needs TriagePublic

Description

We have a bunch of libraries that are hosted on gerrit but the composer package points to Github (for performance, I guess?). When checking these out via composer install --prefer-source, composer will create two upstreams, origin and composer, but both will point to Github. It would be less confusing for would-be contributors if the origin pointed to gerrit.

I don't think there is a simple way to achieve it in composer, but it's always possible via a post-install hook.

Event Timeline

(for performance, I guess?)

Rather I would assume this is because GitHub has webhook support for integrating with Packagist that Gerrit does not have. I would recommend we wait until these things migrate over to https://gitlab.wikimedia.org/ and update their Packagist configurations to point there.