【发布时间】:2021-06-15 20:12:38
【问题描述】:
我在 go1.12 上使用 go 模块来处理我的 Go 依赖项。将vendor/ 目录也提交到版本控制中是最佳做法吗?
这与Is it best-practice to commit the `vendor` directory? 有点相关,它在使用dep 的情况下提出这个问题。使用dep,提交vendor/ 是获得真正可重复构建的唯一方法。 go 模块呢?
【问题讨论】:
-
@Tom:这个答案与 go 模块无关。
标签: go go-modules