dongzhong3688 2019-06-05 21:00 采纳率: 0%
浏览 25
已采纳

Golang每次部署都会更新供应商依赖性

I'm fairly new to Go coming from a Java background and am trying to figure out best practices for Go dependency management.

If I have Project A that has a dependency on Project B and I put a reference to Project B in my vendor package then running go install downloads everything I need. However, let's say I find a bug in Project B that I fix, how do I ensure that Project A stays up to date? As in, is there some way to do an install on every deploy to make sure that I'm not missing anything?

In Java, on every deploy I would do my own mvn package to best ensure that each deploy was self-sufficient. Is there some way to do the same in Go?

Apologies if this is a really basic question - but I couldn't find a good answer.

  • 写回答

1条回答 默认 最新

  • doudi1449 2019-06-06 09:07
    关注

    If you are using go 1.11 and above go mod for prior versions you can use go dep

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

    报告相同问题?

    悬赏问题

    • ¥30 计算机网络子网划分路由模拟操作
    • ¥15 MATLAB的画图问题
    • ¥15 c语言用fopen_s成功打开文件之后闪退
    • ¥20 用C++完成,并且运用数组
    • ¥30 求解电力系统潮流计算结果不收敛问题
    • ¥15 某易易盾点选data解析逆向
    • ¥15 系统崩溃,关于订单的处理
    • ¥15 datax-web连接hive为数据源时发生报错,如何解决?
    • ¥15 plink在进行gwas分析时总读取不到表型
    • ¥20 数据结构与c语言的实践内容