-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
File visibility failures in MyPy if "--build_python_zip" is active while running 'bazel test' on 'mypy_test' target #33
Comments
👋 @kororobot, thanks for the report. I can reproduce this behaviour on my machine as well. There's some interaction between We've already spoken in Slack about some earlier investigation, which I'll detail here for posterity: On initial communication about the problem, I focused on why the config file was inaccessible to the
I found that:
So I figured that there was a file visibility problem not just with the config file but with maybe all the runfiles needed by Now that @kororobot has found that As expected,
|
For now, a recommended mitigation is to not using filegroup(
name = "foo_zip",
srcs= ["//bar:foo"],
output_group = "python_zip_file",
) |
Thanks! As per discussion, I will close this issue with solution to remove |
I think we should keep it open, as there's some problem that's undiagnosed. |
Hi Jono,
I have reproducible repo to illustrate the issue that I am having, the
mypy
throws error when I am using combination of:build --build_python_zip
andmypy_test
.If I commented out the
build --build_python_zip
in.bazelrc
, it works well. Worth to mention, mypy integration with aspect is working as expected. I suspect there is something missing in the link with theexport_files
.The text was updated successfully, but these errors were encountered: