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 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. |
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: