I have got a Libraries project which I am pulling in my main project via composer like this:
"repositories": [
{
"type": "package",
"package": {
"name": "testsystems/libraries-project",
"version": "master",
"source": {
"url": "git@bitbucket.org:testsystems/libraries-project.git",
"type": "git",
"reference": "master"
},
"autoload": {
"psr-4": {
"Test\\": "src/Test/"
}
}
}
}
],
And then on require:
"testsystems/libraries-project": "master"
The issue is that composer update
fails when it comes to installing this project with the following message:
Cloning into '/var/www/test/vendor/test/libraries'...
repository access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
And then on ~/.ssh/config
I have added:
Host bitbucket.org
HostName altssh.bitbucket.org
Port 443
Any ideas?
回答我的问题:在我的情况下,使用HTTPS代替Git可以很好地工作。
https://thitami@bitbucket.org/testrepo/libraries-project.git
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.