Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/gazelle: hack to fix repository name hfor @go_googleapis
Normally, Gazelle detects the repository name by reading the WORKSPACE file and looking for a workspace rule. In go_googleapis, the proper workspace name is com_google_googleapis. Before bazel-contrib/rules_go#2355, we patched the WORKSPACE file before running Gazelle so the repository name would be set to go_googleapis. Unfortunately, in newer versions of Bazel, WORKSPACE is overwritten, so the patch doesn't apply. This change just adds a hack to set the repository name to go_googleapis if com_google_googleapis is detected. Updates bazel-contrib/rules_go#2387
- Loading branch information