Bazel构建golang项目,怎么设置这一项?

Bazel构建golang项目,怎么设置这一项?官方文档有这么一段:
https://github.com/bazelbuild...

Add the code below to the BUILD or BUILD.bazel file in the root
directory of your repository. Replace the string after prefix with the
prefix you chose for your project earlier.

load("@bazel_gazelle//:def.bzl", "gazelle")

# gazelle:prefix github.com/example/project 
gazelle(name = "gazelle")

上面说倒数prefix后面要用项目代替,我的项目在本地D:\workspace\www\go_work\src\golang_learning,应该怎么设置?

阅读 2.3k
1 个回答
gazelle:prefix golang_learning
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进