• <legend id='QgA4g'><style id='QgA4g'><dir id='QgA4g'><q id='QgA4g'></q></dir></style></legend>
    <tfoot id='QgA4g'></tfoot>

      <small id='QgA4g'></small><noframes id='QgA4g'>

      1. <i id='QgA4g'><tr id='QgA4g'><dt id='QgA4g'><q id='QgA4g'><span id='QgA4g'><b id='QgA4g'><form id='QgA4g'><ins id='QgA4g'></ins><ul id='QgA4g'></ul><sub id='QgA4g'></sub></form><legend id='QgA4g'></legend><bdo id='QgA4g'><pre id='QgA4g'><center id='QgA4g'></center></pre></bdo></b><th id='QgA4g'></th></span></q></dt></tr></i><div id='QgA4g'><tfoot id='QgA4g'></tfoot><dl id='QgA4g'><fieldset id='QgA4g'></fieldset></dl></div>
        • <bdo id='QgA4g'></bdo><ul id='QgA4g'></ul>

        无法获得作曲家“路径"存储库工作

        Can#39;t get composer quot;pathquot; repository to work(无法获得作曲家“路径存储库工作)

        <i id='7JXu1'><tr id='7JXu1'><dt id='7JXu1'><q id='7JXu1'><span id='7JXu1'><b id='7JXu1'><form id='7JXu1'><ins id='7JXu1'></ins><ul id='7JXu1'></ul><sub id='7JXu1'></sub></form><legend id='7JXu1'></legend><bdo id='7JXu1'><pre id='7JXu1'><center id='7JXu1'></center></pre></bdo></b><th id='7JXu1'></th></span></q></dt></tr></i><div id='7JXu1'><tfoot id='7JXu1'></tfoot><dl id='7JXu1'><fieldset id='7JXu1'></fieldset></dl></div>
            <tbody id='7JXu1'></tbody>
        • <tfoot id='7JXu1'></tfoot>

          • <small id='7JXu1'></small><noframes id='7JXu1'>

            1. <legend id='7JXu1'><style id='7JXu1'><dir id='7JXu1'><q id='7JXu1'></q></dir></style></legend>
                <bdo id='7JXu1'></bdo><ul id='7JXu1'></ul>
                1. 本文介绍了无法获得作曲家“路径"存储库工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个这样的目录结构:

                  I have a directory structure like so:

                  composer.json < Main
                    packages/
                      balunker/
                        testpackage/
                          composer.json < Package
                          src/
                            TestPackage.php
                  

                  主要的composer.json如下所示:

                  {
                      "name": "vagrant/composer-test",
                      "repositories": [
                          {
                               "type": "path",
                              "url": "packages/*/*"
                          }
                      ],
                      "require": {
                          "balunker/testpackage": "*"
                      }
                  }
                  

                  虽然包 composer.json 看起来像这样:

                  While the package composer.json looks like so:

                  {
                    "name": "balunker/testpackage",
                    "autoload": {
                      "psr-4": {
                        "Balunker\": "src/"
                      }
                    }
                  }
                  

                  composer update 上,我简单地收到一条消息,指出无法解析包.没有创建符号链接,也没有安装包.我确实花了半天时间来解决这个问题,但没有任何成功.

                  On composer update I simple get a message that the package could not be resolved. No symlinks are created and no package is installed. I have literally spent half of my day figuring this out, without any success.

                  我还上传了 composer update -vvv 的详细输出:http://pastebin.com/mMRHsACk.

                  I also uploaded a composer update -vvv verbose output of this: http://pastebin.com/mMRHsACk.

                  我的作曲家版本是最新的(截至 2016 年 4 月 20 日下午 2:39 UTC),所有这些都在 Vagrant (Debian) 中运行.

                  My composer version is the latest (as of 20th of April 2016 at 2:39pm UTC) and all of this is running inside Vagrant (Debian).

                  非常感谢您提供的任何建议.我真的不知道还能做什么.

                  ANY recommendation from hereon is greatly appreciated. I really don't know what else to do any more.

                  推荐答案

                  我也在 Github 上发布了这个问题,结果发现文档有点误导.它说:

                  I posted the issue on Github as well and it turns out that the documentation is a little misleading. It says:

                  {
                      "repositories": [
                          {
                              "type": "path",
                              "url": "../../packages/my-package"
                          }
                      ],
                      "require": {
                          "my/package": "*"
                      }
                  }
                  

                  但是,如果您只有一个没有发布的本地 repo,您必须使用:

                  However, if you just have a local repo without releases, you have to use:

                  {
                      "repositories": [
                          {
                              "type": "path",
                              "url": "../../packages/my-package"
                          }
                      ],
                      "require": {
                          "my/package": "dev-master"
                      }
                  }
                  

                  版本 dev-master 是这里的关键(假设您在 master 分支上工作).这有点令人恼火,但感谢一些乐于助人的作曲家贡献者,我终于可以掌握这一点.

                  The version dev-master is the key here (given that you are working on the master branch). This was mildly infuriating, but thanks to some helpful composer contributors, I could finally get a grip on this.

                  我希望这对将来的人有所帮助.

                  I hope this may help somebody in the future.

                  祝你好运!

                  这篇关于无法获得作曲家“路径"存储库工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                  datetime to timestamp(日期时间到时间戳)
                  PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                  Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                  Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                  Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)
                  <i id='lRpfv'><tr id='lRpfv'><dt id='lRpfv'><q id='lRpfv'><span id='lRpfv'><b id='lRpfv'><form id='lRpfv'><ins id='lRpfv'></ins><ul id='lRpfv'></ul><sub id='lRpfv'></sub></form><legend id='lRpfv'></legend><bdo id='lRpfv'><pre id='lRpfv'><center id='lRpfv'></center></pre></bdo></b><th id='lRpfv'></th></span></q></dt></tr></i><div id='lRpfv'><tfoot id='lRpfv'></tfoot><dl id='lRpfv'><fieldset id='lRpfv'></fieldset></dl></div>
                  <tfoot id='lRpfv'></tfoot>

                    <small id='lRpfv'></small><noframes id='lRpfv'>

                        <tbody id='lRpfv'></tbody>
                        <legend id='lRpfv'><style id='lRpfv'><dir id='lRpfv'><q id='lRpfv'></q></dir></style></legend>
                          • <bdo id='lRpfv'></bdo><ul id='lRpfv'></ul>