当我尝试运行composer install时,我看到我的项目出现以下错误:
Installing symfony/yaml (dev-master 8bae579)
Downloading
Failed to download symfony/yaml from dist: Could not authenticate against github.com
Now trying to download from source
- Installing symfony/yaml (dev-master 8bae579)
Cloning 8bae579c7afa252c055855f071c751eb75dcf6c4
8bae579c7afa252c055855f071c751eb75dcf6c4 is gone (history was rewritten?)
当我手动将repo克隆到单独的目录并发现我无法执行时:
git checkout 8bae579c7afa252c055855f071c751eb75dcf6c4
它不存在!好吧,这是有道理的,
无论其
虽然在这里仍然可以在github.com上找到提交:
https://github.com/symfony/yaml/commit/8bae579c7afa252c055855f071c751eb75dcf6c4
github也会缓存提交的zip,所以你仍然可以在这里下载zip:
https://api.github.com/repos/symfony/yaml/zipball/0047c8366744a16de7516622c5b7355336afae96
考虑到这一点,为什么作曲家仍然抱怨失踪?
我的composer.lock文件的相关部分如下所示:
{
"name": "symfony/yaml",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "0047c8366744a16de7516622c5b7355336afae96"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/0047c8366744a16de7516622c5b7355336afae96",
"reference": "0047c8366744a16de7516622c5b7355336afae96",
"shasum": ""
},
"require": {
"php": ">=5.5.9"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Component\\Yaml\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
"time": "2015-12-05 11:13:35"
},