我正在使用Godeps将我的依赖项保存到我的go项目中。现在我的Godeps.json文件如下所示:{"ImportPath":"github.com/some/repo","GoVersion":"go1.6","GodepVersion":"v74","Packages":["gopkg.in/mgo.v2","github.com/sendgrid/sendgrid-go","gopkg.in/olivere/elastic.v3"],"Deps":[{"ImportPath":"github.com/sendgrid/sendgrid-go","Comment":"v2.0.0
在我的WORKSPACE中,我为importpathgolang.org/x/net定义了go_repostitory。go_repository(name="org_golang_x_net",commit="5ccada7d0a7ba9aeb5d3aca8d3501b4c2a509fec",importpath="golang.org/x/net",)但是当我运行gazelle时,BUILD.Bazel中添加的依赖不是@org_golang_x_net//context:go_default_library。相反,它是以下内容://golang.org/x/net/context:
在我的WORKSPACE中,我为importpathgolang.org/x/net定义了go_repostitory。go_repository(name="org_golang_x_net",commit="5ccada7d0a7ba9aeb5d3aca8d3501b4c2a509fec",importpath="golang.org/x/net",)但是当我运行gazelle时,BUILD.Bazel中添加的依赖不是@org_golang_x_net//context:go_default_library。相反,它是以下内容://golang.org/x/net/context: