-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[examples] Clean up visibility and paths #21401
[examples] Clean up visibility and paths #21401
Conversation
The default visibility (for rules that aren't otherwise marked) shall always be private; making example code or models public should always be opt-in. Align opt-in in to public visibility to exactly match things that are installed; if its not installed, then it shouldn't be used outside of Drake. Avoid "subpackages" spelling for visibility; for clarity we should either make things fully public (installed) or else limit to an allow-list of specific other packages one by one. Now that all examples code is suitably private, re-spell the imports to lose the "drake" part of the module namespace. The old spelling of imports is dispreferred and will not work with upcoming bzlmod.
+@rpoyner-tri for both reviews, please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 46 of 46 files at r1, all commit messages.
Reviewable status: LGTM missing from assignee rpoyner-tri(platform)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all discussions resolved, LGTM from assignee rpoyner-tri(platform)
The default visibility (for rules that aren't otherwise marked) shall always be private; making example code or models public should always be opt-in. Align opt-in in to public visibility to exactly match things that are installed; if its not installed, then it shouldn't be used outside of Drake. Avoid "subpackages" spelling for visibility; for clarity we should either make things fully public (installed) or else limit to an allow-list of specific other packages one by one. Now that all examples code is suitably private, re-spell the imports to lose the "drake" part of the module namespace. The old spelling of imports is dispreferred and will not work with upcoming bzlmod.
The default visibility (for rules that aren't otherwise marked) shall always be private; making example code or models public should always be opt-in.
Align opt-in in to public visibility to exactly match things that are installed; if its not installed, then it shouldn't be used outside of Drake.
Avoid "subpackages" spelling for visibility; for clarity we should either make things fully public (installed) or else limit to an allow-list of specific other packages one by one.
Now that all examples code is suitably private, re-spell the imports to lose the "drake" part of the module namespace. The old spelling of imports is dispreferred and will not work with upcoming bzlmod (#20731).
Anzu CI has passed vs this PR.
This change is