关闭
dsm17496 2016-12-14 16:21 采纳率: 100%
浏览 97
已采纳

govendor是否自动包括传递依赖项?

Let's say I add a new dependency X through govendor add or govendor fetch. This dependency X has a dependency on Y.

Will govendor automatically pull in those dependencies as well? Or will I have to do govendor add Y.

Does the behavior differ betweeen add and fetch?

I couldn't find this discussed on any of the documentation here: https://github.com/kardianos/govendor

Or by running govendor add --help

  • 写回答

1条回答 默认 最新

  • doulao2029 2016-12-19 13:32
    关注

    govendor fetch <package_name> will automatically include transitive dependencies.

    govendor add <package_name> will not.

    However if you run govendor add +external (with no package name) it will vendor the dependencies and transitive dependencies that your code relies on, as long as they are checked out on your GOPATH.

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部