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

Updated documentation of go_prefix flag #1046

Merged
merged 4 commits into from
May 14, 2021
Merged

Updated documentation of go_prefix flag #1046

merged 4 commits into from
May 14, 2021

Conversation

tanyabouman
Copy link
Contributor

What type of PR is this?
Documentation

What does this PR do? Why is it needed?
It updates the description of the go_prefix flag, since the go_prefix rule no longer exists. Hopefully my understanding is correct.

@tanyabouman tanyabouman requested a review from jayconrod as a code owner May 14, 2021 18:01
README.rst Outdated
@@ -381,8 +381,9 @@ The following flags are accepted:
| :flag:`-go_prefix example.com/repo` | |
+--------------------------------------------------------------+----------------------------------------+
| A prefix of import paths for libraries in the repository that corresponds to |
| the repository root. Gazelle infers this from the ``go_prefix`` rule in the |
| root BUILD.bazel file, if it exists. If not, this option is mandatory. |
| the repository root. Gazelle infers this from the ``# gazelle:prefix`` directive |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be more accurate to say that setting -go_prefix on the command line is equivalent to putting a # gazelle:prefix directive in the root build file. The prefix attribute on the gazelle rule actually causes gazelle to be invoked with this flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I think I get it. It's updated. Does it makes sense now?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works. Thanks!

@jayconrod jayconrod merged commit 40981ea into bazel-contrib:master May 14, 2021
@tanyabouman tanyabouman deleted the go_prefix-update branch May 17, 2021 18:23
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.

2 participants