-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
incompatible_no_implicit_file_export: implicitly exported files have private visibility #10225
Comments
--incompatible_no_implicit_file_export
: implicitly exported files have private visibility
This flag causes a build error in an empty workspace with Bazel 2.0:
I've also seen this error referring to This causes our build to fail for reasons I don't fully understand. Do See also: bazelbuild/continuous-integration#887 |
This allows someone, for example, to depend on lib/libclang.so. A good portion of these files are already implicitly exported, but that behaviour will be changing soon. See bazelbuild/bazel#10225.
This allows someone, for example, to depend on lib/libclang.so. A good portion of these files are already implicitly exported, but that behaviour will be changing soon. See bazelbuild/bazel#10225.
This allows someone, for example, to depend on `lib/libclang.so`. A good portion of these files are already implicitly exported, but that behaviour will be changing soon. See bazelbuild/bazel#10225.
This allows someone, for example, to depend on `lib/libclang.so`. A good portion of these files are already implicitly exported, but that behaviour will be changing soon. See bazelbuild/bazel#10225.
This allows someone, for example, to depend on `lib/libclang.so`. A good portion of these files are already implicitly exported, but that behaviour will be changing soon. See bazelbuild/bazel#10225.
This is labeled with Please update the issue status. |
I'd be interested in possibly flipping this for Bazel 7.0. Note that there appears to be a edge case bug in the current implementation. |
I tried turning this on in a repo that I'm working with and discovered (with Bazel 6.2.0):
so it appears that |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
@bazelbuild/triage not stale |
If the flag
--incompatible_no_implicit_file_export
is enabled, files that are implicitly exported because they are mentioned in theBUILD
have private visibility regardless of the default visibility of the package.Migration: add an explicit
exports_files
for all files that should be used outside the package they belong to.Design document: https://github.com/bazelbuild/proposals/blob/master/designs/2019-10-24-file-visibility.md
The text was updated successfully, but these errors were encountered: