-
-
Notifications
You must be signed in to change notification settings - Fork 631
Turn //python/private
into a package.
#555
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
Conversation
This PR includes the changes in #556 |
I'm not clear what's the benefit of making another package under the private/ folder vs. what we have now? |
Please see #554 (comment) |
https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#bzl-visibility doesn't mention packages, but rather directories. However I have a few minutes to find out for sure:
So I think this means you're right, if private is a directory but not a nested package, users won't get a warning about using private APIs. Confirmed also that adding this line to one of our examples
doesn't cause a bzl-visibility lint. So there's actually an issue being fixed here. |
Filed #557 which is the explanation I was looking for :) |
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.
thanks!
PR Checklist
Please check if your PR fulfills the following requirements:
.par
files. See CONTRIBUTING.md for infoPR Type
What kind of change does this PR introduce?
What is the current behavior?
See #557
This turns
./python/private
into a Bazel packageIssue Number: #557
What is the new behavior?
This change adds the
//python/private
packageInstead of loading
//python:private/reexports.bzl
, users will now need to load//python/private:reexports.bzl
Does this PR introduce a breaking change?
This is not marked as a breaking change, because loads under the /private folder were never public API.