浏览代码

Merge pull request #8215 from kpitn/patch-1

Update only one package
Jordi Boggiano 6 年之前
父节点
当前提交
e7051de1a4
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      doc/articles/handling-private-packages-with-satis.md

+ 13 - 0
doc/articles/handling-private-packages-with-satis.md

@@ -112,6 +112,19 @@ Note that this will still need to pull and scan all of your VCS repositories
 because any VCS repository might contain (on any branch) one of the selected
 because any VCS repository might contain (on any branch) one of the selected
 packages.
 packages.
 
 
+If you want to scan only the selected package and not all VCS repositories you need
+to declare a *name* for all your package (this only work on VCS repositories type) :
+
+```json
+{
+  "repositories": [
+    { "name": "company/privaterepo", "type": "vcs", "url": "https://github.com/mycompany/privaterepo" },
+    { "name": "private/repo", "type": "vcs", "url": "http://svn.example.org/private/repo" },
+    { "name": "mycompany/privaterepo2", "type": "vcs", "url": "https://github.com/mycompany/privaterepo2" }
+  ]
+}
+```
+
 If you want to scan only a single repository and update all packages found in
 If you want to scan only a single repository and update all packages found in
 it, pass the VCS repository URL as an optional argument:
 it, pass the VCS repository URL as an optional argument: