Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/gazelle: hack to fix repository name hfor @go_googleapis #717

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

jayconrod
Copy link
Contributor

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

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
jayconrod pushed a commit to jayconrod/rules_go that referenced this pull request Feb 26, 2020
@jayconrod jayconrod merged commit 960ddc5 into bazel-contrib:master Feb 26, 2020
@jayconrod jayconrod deleted the fix-googleapis branch February 26, 2020 20:47
jayconrod pushed a commit to bazel-contrib/rules_go that referenced this pull request Feb 26, 2020
jayconrod pushed a commit to bazel-contrib/rules_go that referenced this pull request Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant