dongqie4233 2015-12-20 18:55
浏览 40


I am working on a project that requires some dependencies. I am a little confused by the best practices regarding vendoring. Currently I am using GO15VENDOREXPERIMENT and have copied the dependencies into the vendor directory.

When I need to update the dependencies I checkout the source code manually from docker-machine and copy it into my vendor directory. This brings in a lot of unnecessary code, tests, etc. Is there any recommendations on automating this? I am used to maven where I can just specify version info in a configuration file.

What about GODEPS? How does that play into the GO15VENDOREXPERIMENT. I would prefer a solution where I don't have to checkin dependencies into my source tree.

  • 写回答

1条回答 默认 最新

  • duanjunao9348 2015-12-21 14:41

    There are a few tools that help with vendoring your dependencies. Most of them are able to handle GO15VENDOREXPERIMENT.

    For example:

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



    • ¥15 docker无法进入容器内部
    • ¥15 qt https 依赖openssl 静态库
    • ¥15 python flask 报错
    • ¥15 改个密码引发的项目启动问题
    • ¥100 CentOS7单线多拨
    • ¥15 debian安装过程中老是出现无法将g21dr复制到g21dr怎么解决呀?
    • ¥15 如何用python实现跨工作簿的指定区域批量复制粘贴
    • ¥15 基于CH573f的雷迪安CR1400m通讯代码
    • ¥15 matlab m文件如何与matla app designer 数据交互?
    • ¥15 根据控制框图,传递函数求解