dtt5830659 2016-01-11 05:36
浏览 144
已采纳

通过Composer解决项目中的Git repo问题?

I'm working with Composer to pull in libraries, and I'm struggling with something. Here is the composer.json that I'm working with:

{
  "require": {
    "mike182uk/paypal-ipn-listener": "~4.0"
  },
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/angelleye/filemakerapi.git"
    }
  ]
}

When I run composer update it's pulling in the paypal-ipn-listener stuff, but it's not pulling in the filemakerapi stuff.

What's strange is the first time I ran it I did see that it went through all the different tags in the repo, and showed the versions (9.0, 10.0, 11.0, etc.) but then it ended up telling me "nothing to install or update."

Now when I run it I just get that same message that there is simply nothing to install or update.

I also tried this for the repositories part instead...

  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/angelleye/filemakerapi"
    }
  ]

I get the same result with both of those methods, though. I can't figure out why it won't actually pull in the master branch or a tagged version of that repo.

Any information on what I'm doing wrong here would be greatly appreciated. Thanks!

  • 写回答

1条回答 默认 最新

  • donglian4770 2016-01-11 05:40
    关注

    Adding a repository doesn't automatically pull in the code. It just tells composer where it should look to meet dependencies.

    You will need to add a require entry for matatirosoln/filemaker-api (the package name in that repo's composer.json) in order for it to pull in that dependency.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误