-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
docs: goal associated with multiple backends only lists one #17772
Comments
This seems to be somewhat of an explicit choice: pants/src/python/pants/help/help_info_extracter.py Lines 600 to 605 in 4dc2d02
|
Yea, I found it counter-productive to list all backends that registered types/rules, as there is quite a bit of cross pollination going on, due to dependencies between backends. Listing them all would be rather confusing in terms of presenting "the source" for where it came from. The idea here being, that it is reasonable to assume that the shorter module path is likely a "top level" thing that would make sense to enable in the |
Having said that, perhaps for |
Thanks for the insight. I tried the quick thing of switching to including all providers for all options (huonw@8b82d45#diff-6e1f224c2d6075bc35b2fe6023c3aef055e5985c7f4042676b0f9617e296c3af). I checked in the docs so that the rest of that diff shows what changed. It looks like there's a few broad categories of what's changed (just a selection, this isn't a complete categorisation of all files):
This definitely seems like an annoying thing to get 'right'! Maybe the current behaviour is the best balance 😄 |
Haha, nice research. Yea, there are certainly cases where showing just one is not perfect or the shortest one is not what we'd like. As you say, getting this right for every case will be tricky I think. |
Thanks @huonw! I agree with your classification. How about we allow |
Describe the bug
The
export-codegen
goal is associated with/created by many backends, like protobuf, docker, and several others. However, the docs page for it (https://www.pantsbuild.org/docs/reference-export-codegen) only lists one:pants.backend.docker
.Pants version
2.14
OS
N/A
Additional info
N/A
The text was updated successfully, but these errors were encountered: