Closed rorych closed 4 years ago
Does the composer update
work locally?
Yes it does
It is most likely that your local computer does have access to the repository (e.g. through public key/SSH authentication), but the Cloud Resolver does not. Private repositories need to use URL authentication to work with the cloud resolver, but unfortunately GitHub does not support that.
Thanks for your help and the great work on the contao manager and cloud resolver - awesome tool!
Okay so the problem is, that GitHub doesn't support authentication via URL? Do you know if Bitbucket or Gitlab support it and if they would work with the cloud resolver?
I know that Gitlab and Private Packagist support it.
It is most likely that your local computer does have access to the repository (e.g. through public key/SSH authentication), but the Cloud Resolver does not. Private repositories need to use URL authentication to work with the cloud resolver, but unfortunately GitHub does not support that.
But he is not using SSH, he is using HTTPS with URL authentication. Or does composer automatically fall back to git@github.com:…
when using https://github.com/…
?
Just tested it in Bitbucket and GitLab.
On Bitbucket it runs on the local installation but not on the cloud resolver. On Gitlab i didn't get it running on either.
@aschempp Do you have a running example?
I don't. But did you include authentication info in the repository URL?
Yes, in different options (username:token, username:password, ?private_token=token) I think i'll just use private packagist, that worked last time i tested it with the trial...
I can't really tell. Just be aware that you can't use the auth.json
, it has to be in the repository URL.
@rorych did you define your GitHub tokens in a local auth.json
? That would may be explain, why it works locally, but not in the cloud.
No i don't have any auth.json setup.
I'm going to change to Private Packagist, that seems the best move.
Gem. https://community.contao.org/de/showthread.php?78130-Contao-Bundle-von-privatem-Repo-mit-dem-Contao-Manager-Cloud-Resolver-installieren
System: Conteo 4.9 Contao Manager 1.2.4 PHP 7.4
Ausgangslage: Laufende Contao 4.9 Installation mit einem privaten Repo eingebunden via :
Lokal kann anschliessend erfolgreich ein composer update durchgeführt werden. Das private Bundle wird dabei installiert.
Problem: Beim Versuch das gleiche via Contao Manager bzw. Cloud Resolver zu machen, erhalte ich folgende Meldung:
Ganzer Output - ohne Token: https://wetransfer.com/downloads/4cc72569dc73568d084cdbc16954d0a120200604085300/4a4f948cad892caabd1d9271d05c3e6320200604085314/5f736e
Gem. Forums-Feedback, müsste das funktionieren, daher melde ich mich hier. Mache ich was falsch oder ist das ein Bug?