dousi8559 2015-03-06 09:16
浏览 189
已采纳

我应该在go项目中使用git子模块吗?

There's a project written in go language. And it's managed using git. Should I use git submodules or just import directives to use a 3rd-party project?

For example:

// Just use import directive.
import "github.com/3rd-party/dep"

// From a submodule.
$ cd myown
$ git add submodule https://github.com/3rd-party/dep dep
$ ...
import "github.com/myown/dep"
  • 写回答

2条回答 默认 最新

  • dousha1873 2015-03-06 10:54
    关注

    You should use import "github.com/3rd-party/dep" and then run go get in the working directory

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?