瀏覽代碼

Docs: Add back a second clear note about hardcoded versions in VCS

Nils Adermann 8 年之前
父節點
當前提交
d835983b15
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      doc/02-libraries.md

+ 4 - 1
doc/02-libraries.md

@@ -48,13 +48,16 @@ file:
 }
 ```
 
+> **Note:** When you add a hardcoded version to a VCS, the version will conflict
+> with tag names. Composer will not be able to determine the version number.
+
 ### VCS Versioning
 
 Composer uses your VCS's branch and tag features to resolve the version
 constraints you specify in your `require` field to specific sets of files.
 When determining valid available versions, Composer looks at all of your tags
 and branches and translates their names into an internal list of options that
-it then matches against the version constraint you've provided.
+it then matches against the version constraint you provided.
 
 For more on how Composer treats tags and branches and how it resolves package
 version constraints, read the [versions](articles/versions.md) article.