New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private Repo on Bitbucket without installed GIT don't work #3893
Comments
The auth.json is the preferred method to handle authentication. You should never commit your credentials. Composer should have asked your credentials interactively. See also: http://seld.be/notes/authentication-management-in-composer |
May be, |
@kfreiman |
Thank you for your help. @frederikbosch : > You should consider changing your deployment strategy. |
@mad99 My advice was meant for the case you do not have git on your server. If this issue is not relevant anymore, please close it. |
Hi together,
Composer is a really cool tool. Thank you very much for this!
There's a point, that left me stuck. Contao's Plugin System is use of Composer. There an error was thrown because I used the included credentials »username:password@« without installed or wrong installed GIT on publish Server. The Error could be from Composer itself.
There is a private Repository on Bitbucket. I would like to use it with the username:password@ included url in composer.json like :
"repositories": [
{
"type": "vcs",
"url": "https://username:password@bitbucket.org/ownername/reponame.git"
},
{
"type": "artifact",
"url": "packages"
}
]
On the publish Server, there is no GIT installed nor SSH-KEY file create-able. So the error printout from Composer is:
Failed to clone https://username:***@bitbucket.org/ownername/reponame.git, git was not found, check that it is installed and in your PATH env. git: not found
In Contao-Community (https://community.contao.org/de/showthread.php?56354-funktioniert-Composer-mit-privatem-Bitbucket-Repository-ohne-SSH-Key-auf-Server) a nice guy told me, it could appear because the regular expression in
composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php
Line 146 in f10c714
Maybe you could change the Regex, so the username:password@ possibility would work also without installed GIT. Or maybe you could deliver an different Error-Message: Like "Composer can't use your included credentials password:username@ in the url. Please use the auth.json instead of it."
Thanks to michael.g I found a workaround with the auth.json, so I can use the private Bitbucket Repo without installed or wrong installed GIT OR SSH-KEY on the public server. But without Michael I would stuck for a long time ...
Kind regards and thank you very much for your work on composer
Martin
The text was updated successfully, but these errors were encountered: