最近,当我将 composer 升级到最新版本 (2.1.3) 时,我开始在运行时拉下我们的 satis 存储库时遇到问题composer update
。
我得到的实际错误是:
usr@srv ~/test $ composer update
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 87 installs, 0 updates, 0 removals
As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' or '7z' may remediate them.
- Syncing company/satis-company-lib (dev-master 349679e) into cache
[InvalidArgumentException]
Unknown downloader type: vcs. Available types: git, svn, fossil, hg, perforce, zip, rar, tar, gzip, xz, phar, file, path.
这个错误的原因是什么?我意识到它在抱怨解压缩,但为什么会突然开始发生这种情况?
我的 satis 配置似乎生成了vcs
repos,但我找不到配置条目来更改它(我只git
在构建我的 satis 包时使用 repos)。我也不知道如何将该vcs
功能添加到我的作曲家安装中。
我的满意配置如下所示:
{
"name": "Company PHP Repository",
"homepage": "https://satis:examplepw@packages.company.com",
"repositories": [
{
"type": "git",
"url": "https://satis:examplepw@source.company.com/company/company-lib-php.git"
},
{
"type": "git",
"url": "https://satis:examplepw@source.company.com/company/company-lib-yii-php.git"
}
],
"require-all": true,
"archive": {
"directory": "dist",
"format": "zip",
"prefix-url": "https://satis:examplepw@packages.company.com"
},
"require-dependencies": true,
"require-dev-dependencies": true
}
我猜这与“存档”部分没有生成正确的 dist 包有关,但我不确定。