【发布时间】:2018-05-05 02:15:54
【问题描述】:
我们有 composer 作为我们的依赖注入框架,它将引入我们创建的库 foobar,它工作正常。库 foobar 有 14 个版本 v1.1.1 -> v1.1.14。一直到 .12 作曲家更新了应用程序。但是现在我们得到了这个错误:
Update failed (Source directory /home/username/dev/git/appname/vendor/foorbar/library has unpushed changes on the current branch:
Branch v1.1.14 could not be found on the origin remote and appears to be unpushed)
composer.json:
{
"name": "App",
"description": "Foo Bar",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.2.",
"foobarzf2lib/library": "v1.1."
},
"minimum-stability": "stable",
"repositories": [
{
"type": "package",
"package": {
"name": "foobarzf2lib/library",
"version": "v1.1.14",
"source": {
"url": "https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/foobarzf2lib",
"type": "git",
"reference": "test"
},
"autoload": {
"psr-4": {
"FooBar\\" : "FooBar/"
}
}
}
}
]
}
更多信息:
- 供应商在 git 中被忽略。
- 试过
$ composer.phar clearcache。 - 最好不必每次都删除库。
【问题讨论】:
标签: php git composer-php