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 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵