Open tiefenb opened 4 years ago
I had the same problem when I build my project on gitlab CI, my workaround was to change my composer.lock. I remove "url": "git@github.com:mustangostang/spyc.git"
and put "url": "https://github.com/mustangostang/spyc.git"
The problem comes back using composer update
@diogolast this is also a quick fix in your composer.json, which works with composer update
Installing mustangostang/spyc (0.6.3): Cloning 4627c838b1
[RuntimeException]
Failed to execute git clone --no-checkout 'git@github.com:mustangostang/spyc.git' '/var/www/html/vendor/mustangostang/spyc' && cd '/var/www/html/vendor/mustangostang/spyc' && git remote add composer 'git@github.com:mustangostang/spyc.git' && git fetch composer && git remote set-url origin 'git@github.com:mustangostang/spyc.git' && git remote set-url composer 'git@github.com:mustangostang/spyc.git'
Cloning into '/var/www/html/vendor/mustangostang/spyc'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.