-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Avoid using local_repository for com_google_protobuf #7745
Avoid using local_repository for com_google_protobuf #7745
Conversation
@drake-jenkins-bot mac-sierra-clang-bazel-experimental please |
@drake-jenkins-bot linux-xenial-clang-bazel-experimental-memcheck-ubsan-everything please |
+@EricCousineau-TRI and +@soonho-tri both for all review, please. This is a tricky one so I want a thorough look. FYI @jamiesnape or @clalancette feel free to jump in for review if you desire. |
Reviewed 12 of 12 files at r1. Comments from Reviewable |
d007127
to
3cf79dc
Compare
Reviewed 2 of 2 files at r2. Comments from Reviewable |
Checkpoint, design question regarding generality. Reviewed 7 of 12 files at r1, 2 of 2 files at r2. common/proto/BUILD.bazel, line 94 at r2 (raw file):
FYI Is there any way to expose visibility to a certain macro? tools/workspace/com_google_protobuf/package.bzl, line 11 at r2 (raw file):
Is there a drawback to using My hope is that Bazel would make a symlink forest out of the existing files, rather than drop in the directory symlink directly, and thus preserve hermitic builds that we'd normally get with In this case, we can solve this generally for any Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. common/proto/BUILD.bazel, line 94 at r2 (raw file): Previously, EricCousineau-TRI wrote…
Not that I am aware, no. I think the only related thing we could do is have a public tools/workspace/com_google_protobuf/package.bzl, line 11 at r2 (raw file): Previously, EricCousineau-TRI wrote…
I am not sure. My worry indeed was about whether or not changes would be recognized, and I didn't try to test it at all. Probably a good question for bazel-discuss -- if you wanted to whip up an example and ask them "is this sane?". Comments from Reviewable |
Also properly install the ubsan fixup. Also move the ubsan fixup cc_library out of the com_google_protobuf repository. If a downstream Bazel user of Drake were to choose to use modern com_google_protobuf (not Drake's vendored copy) then this label would go missing and drake_proto.bzl would have errors. Instead, we build and install this header as part of Drake.
3cf79dc
to
9eeb175
Compare
Review status: 9 of 11 files reviewed at latest revision, 1 unresolved discussion. tools/workspace/com_google_protobuf/package.bzl, line 11 at r2 (raw file): Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
(I wasn't worrying too much about it, because the predominant situation is that our dependencies come from github, not from a vendored copy. This and Comments from Reviewable |
Reviewed 2 of 2 files at r3. Comments from Reviewable |
Reviewed 3 of 12 files at r1, 2 of 2 files at r3. common/proto/BUILD.bazel, line 94 at r2 (raw file): Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
OK Thanks! tools/workspace/com_google_protobuf/package.bzl, line 11 at r2 (raw file): Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
OK I will test this separate to this PR. Thanks! Comments from Reviewable |
Review status: all files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Avoid using local_repository for
@com_google_protobuf
.Also properly install the ubsan fixup.
Also move the ubsan fixup
cc_library
out of the@com_google_protobuf
repository. If a downstream Bazel user of Drake were to choose to use modern@com_google_protobuf
(not Drake's vendored copy) then this label would go missing anddrake_proto.bzl
would have errors. Instead, we build and install this header as part of Drake.Builds on #7323 and #7644.
Relates #7259.
This change is