浏览代码

Merge pull request #4791 from balbuf/patch-1

Clarify "path" repository type version requirement
Jordi Boggiano 9 年之前
父节点
当前提交
618190027a
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      doc/05-repositories.md

+ 5 - 0
doc/05-repositories.md

@@ -639,6 +639,11 @@ file, you can use the following configuration:
 }
 }
 ```
 ```
 
 
+If the package is a local VCS repository, the version may be inferred by
+the branch or tag that is currently checked out. Otherwise, the version should
+be explicitly defined in the package's `composer.json` file. If the version
+cannot be resolved by these means, it is assumed to be `dev-master`.
+
 The local package will be symlinked if possible, in which case the output in
 The local package will be symlinked if possible, in which case the output in
 the console will read `Symlinked from ../../packages/my-package`. If symlinking
 the console will read `Symlinked from ../../packages/my-package`. If symlinking
 is _not_ possible the package will be copied. In that case, the console will
 is _not_ possible the package will be copied. In that case, the console will