2018-06-30 21:36
浏览 257

我应该将go dep vendor /添加到.gitignore吗? [重复]

This question already has an answer here:

Should I add go dep vendor/ folder to .gitignore? Now I have vendor/ in .gitignore, so every deploy will call dep ensure


图片转代码服务由CSDN问答提供 功能建议

此问题已经存在 在这里有答案

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • donxbje866688 2018-06-30 22:46

    github/gitignore/Go.gitignore doesn't add vendor/ to its .gitignore file.

    This causes its content should be versioned, recorded in the Git repository, instead of being potentially generated, and may respond to the following needs:

    • avoiding reference changes
    • dissapearing projects
    • vendoring tool may evolve (dep to vgo to modules), ...
    • if you made modifications to vendor dependencies in your Git repository, you should probably track those

    On the other hand, does add vendor/ to its .gitignore.

    So in conclusion, you might as well ignore it if you're not under any of the situations stated above.

    解决 无用
    打赏 举报

相关推荐 更多相似问题