config file syntax of Satis是almost like Composer's.
此示例SATIS配置用于比较:
{
"name": "local/repository",
"homepage": "http://localhost/",
"repositories": [
{
"name": "doctrine/inflector",
"type": "git",
"url": "https://github.com/doctrine/inflector.git"
},
{
"name": "laravel/laravel",
"type": "git",
"url": "https://github.com/laravel/laravel.git"
}
],
"require-all": true,
"archive": {
"directory": "dist"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"secure-http": false
}
}
然而,发生的情况是,SATIS从指定的GitHub Repos下载所有可用版本.在这种情况下,拉威尔的所有版本和Inflector的所有版本.
但我只想要一个包--最新版本,来自下载的压缩文件(我从远程包存储库(GitHub)下载的压缩文件).
下载的压缩文件的正确配置可能是什么,而不是SATIS repositories
块中的当前名称/类型/url组合?
或者,为了使用下载的压缩文件,我需要做一些完全不同的事情?
我试了几次,但都以各种错误告终