浏览代码

Merge remote-tracking branch 'tarjei/patch-1'

Jordi Boggiano 12 年之前
父节点
当前提交
5806770a81
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      doc/articles/troubleshooting.md

+ 18 - 0
doc/articles/troubleshooting.md

@@ -53,6 +53,24 @@ This is a list of common pitfalls on using Composer, and how to avoid them.
    Use: `before_script: COMPOSER_ROOT_VERSION=dev-master composer install` to export
    the variable for the call to composer.
 
+## Need to override package version
+
+Let say your project depends on package A which in turn depends on a spesific version of 
+package B (say 0.1) and you need a different version of that package - version 0.11.
+
+You fix this by renaming version 0.11 as 0.1:
+
+composer.json:
+    {
+        name: "My project",
+        require: {
+            "A": "0.2",
+            "B": "0.11 as 0.1"
+        }
+    }
+
+Also, se [aliases](aliases.md) for more information.
+
 ## Memory limit errors
 
 If composer shows memory errors on some commands: