Switch back to mainline composer as https://github.com/composer/composer/issues/2269 was fixed.