-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[bazel] change visibility for //c10:headers #91422
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/91422
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 722d3bd: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Hmm, looks like it legitimately breaks bazel build, but imo that's because default visibility is private and it should be public, shouldn't it?
ERROR: /var/lib/jenkins/workspace/BUILD.bazel:1281:11: in cc_library rule //:caffe2_for_aten_headers: target '//c10:headers' is not visible from target '//:caffe2_for_aten_headers'. Check the visibility declaration of the former target if you think the dependency is legitimate
If this passes the build (sorry, can't make suggestions on deleted line), will merge it: #91715
Oh lol, I must be too used to our setup. Let me fix it, thank you. |
950fcd8
to
722d3bd
Compare
Thank you for the quick fix, looks good to me. |
Why are you depending on the headers rather than the full library? |
I wonder why |
@pytorchbot merge -f "Bazel cpu builds passing" |
Agreed. It really only exists because the Bazel build has been pretty haphazard with defining libraries of headers. I would like to see this cleaned up, and having an external user depending on this is not ideal for that goal. |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
I thought that |
I don't think that Also these queries show that
|
I filled #91751 to track improving this c10:headers situation. |
At Cruise we are actively depending on the c10 headers, I'm not certain what is the reason to hide them to the pkg level.