我有后续composer.json
作曲更新不反映资源库改变
{
"name": "mjohnson/transit",
"type": "library",
"description": "A file uploader, validator, importer and transformer library.",
"keywords": [
"transit", "file", "uploader", "validator", "importer", "transformer", "transporter",
"image", "audio", "video", "text", "application", "archive", "s3", "glacier"
],
"homepage": "http://milesj.me/code/php/transit",
"license": "MIT",
"authors": [
{
"name": "Miles Johnson",
"homepage": "http://milesj.me"
}
],
"require": {
"php": ">=5.3.0",
"ext-curl": "*",
"ext-mbstring": "*",
"aws/aws-sdk-php": "2.0.*"
},
"support": {
"source": "https://github.com/milesj/php-transit"
},
"autoload": {
"psr-0": { "Transit": "src/" }
}
}
当我运行一个composer update
源代码不更新,以反映当前的库:https://github.com/milesj/transit
我试图删除锁定文件whitout成功。试图composer [update|install}
举例来说,我现在的(本地)代码:
src/Transit/File.php
:
[...]
public function __construct($path) {
if (!file_exists($path)) {
throw new IoException(sprintf('%s does not exist', $path));
}
$this->_path = $path;
}
[...]
[...]
public function __construct($path) {
if (is_array($path)) {
if (empty($path['tmp_name'])) {
throw new IoException('Passing via array must use $_FILES data');
}
$this->_data = $path;
$path = $path['tmp_name'];
}
if (!file_exists($path)) {
throw new IoException(sprintf('%s does not exist', $path));
}
$this->_path = $path;
// @version 1.3.2 Rename file to add ext if ext is missing
if (!$this->ext()) {
$this->rename();
}
// @version 1.4.0 Reset the cache
$this->_cache = array();
}
[...]
你是否在github中配置'packagist hooks'?如果是,当你的composer.json错误时,packagist不会更新composer包,你需要在packagist网站上强制上传,看看有什么不对。 –
@PierreEmmanuelLallemant它不是我的存储库。我只是一个“消费者”.. –
好的。每5分钟更新一次Composer软件包(这些存储在packagist上)(如果软件包已被推送不到5分钟前,如果你在这种情况下,这是正常的,你不能使用它,现在可以)。否则,你应该通知开发者有这个问题。 –