瀏覽代碼

Merge pull request #2022 from webfactory/issue-2022

"conflict" does not work for non-trivial constraints
Jordi Boggiano 12 年之前
父節點
當前提交
c9918c5f7e
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      doc/04-schema.md

+ 5 - 0
doc/04-schema.md

@@ -309,6 +309,11 @@ if `install` is run with `--dev` or if `update` is run without `--no-dev`.
 Lists packages that conflict with this version of this package. They
 Lists packages that conflict with this version of this package. They
 will not be allowed to be installed together with your package.
 will not be allowed to be installed together with your package.
 
 
+Note that when specifying ranges like "<1.0, >= 1.1" in a `conflict` link,
+this will state a conflict with all versions that are less than 1.0 *and* equal
+or newer than 1.1 at the same time, which is probably not what you want. You
+probably want to go for "<1.0 | >= 1.1" in this case.
+
 #### replace
 #### replace
 
 
 Lists packages that are replaced by this package. This allows you to fork a
 Lists packages that are replaced by this package. This allows you to fork a