Composer file not functional for older versions of git
Please update the Composer file to point to the full repository URI including the .git
extension.
Background
While attempting to update our CiviCRM Docker using the latest docs we noticed that the civicrm-asset-plugin
requirement had not yet been added.
After running the suggested command, composer require civicrm/civicrm-asset-plugin:'~1.0'
the following error was thrown:
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
Failed to execute git clone --no-checkout 'https://lab.civicrm.org/dev/civicrm-asset-plugin/' '/w/vendor/ci
vicrm/civicrm-asset-plugin' && cd '/w/vendor/civicrm/civicrm-asset-plugin' && git remote add composer 'http
s://lab.civicrm.org/dev/civicrm-asset-plugin/' && git fetch composer && git remote set-url origin 'https://
lab.civicrm.org/dev/civicrm-asset-plugin/' && git remote set-url composer 'https://lab.civicrm.org/dev/civi
crm-asset-plugin/'
error: RPC failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
After a bit of digging, it appears the issue is related to .git
not being appended to the repository URL when using GitLab.
While we will likely address it by forcing a git upgrade, we are likely not the only ones affected.