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.

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

报告相同问题?

悬赏问题

  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题