为什么 tensorflow 的 go/ 子目录不使用 Bazel rules_go 中的 go_library?

Why doesn't tensorflow's go/ subdirectory use go_library from Bazel rules_go?

https://github.com/tensorflow/tensorflow/tree/master/tensorflow/go 中的自述文件描述了一个有点脱节的构建过程。

为什么不在 https://github.com/bazelbuild/rules_go 中使用 SWIG 和 go 规则?

除了 "historical accident" 之外,没有什么好的理由。 Tensorflow 在 rules_go 非常成熟之前就有 Go 代码,所以他们实现了自己的规则。

过去几个月我一直在 rules_go 全职工作。我们今年的首要任务是通过构建所需的功能并使规则易于使用来支持 Kubernetes 向 Bazel 的迁移。当这项工作(很快)完成后,我们将继续支持其他使用 Bazel 和 Go 更直接的项目。我希望这将包括 Tensorflow。