Skip to content
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

legacy proto_library does not work with incompatible_generated_protos_in_virtual_imports #9219

Closed
katre opened this issue Aug 21, 2019 · 2 comments
Assignees
Labels
P0 This is an emergency and more important than other current work. (Assignee required) team-Rules-Server Issues for serverside rules included with Bazel type: bug

Comments

@katre
Copy link
Member

katre commented Aug 21, 2019

Reproduction: https://gist.github.com/katre/8a13e84a4ef27b766fd572fe99ce33a6

$ USE_BAZEL_VERSION=0.29.0rc7 bazelisk build //:lib_proto 
INFO: Analyzed target //:lib_proto (2 packages loaded, 17 targets configured).
INFO: Found 1 target...
INFO: From Generating Descriptor Set proto_library //:useful_proto:
external/com_google_protobuf: warning: directory does not exist.
ERROR: /usr/local/google/home/jcater/repos/demo/BUILD.bazel:1:1: Couldn't build file lib_proto-descriptor-set.proto.bin: Generating Descriptor Set proto_library //:lib_proto failed (Exit 1) protoc failed: error executing command bazel-out/host/bin/external/com_google_protobuf/protoc '--proto_path=external/com_google_protobuf' '--descriptor_set_out=bazel-out/k8-fastbuild/bin/lib_proto-descriptor-set.proto.bin' ... (remaining 7 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
external/com_google_protobuf: warning: directory does not exist.
google/protobuf/duration.proto: File not found.
useful.proto:5:1: Import "google/protobuf/duration.proto" was not found or had errors.
useful.proto:10:3: "google.protobuf.Duration" is not defined.
lib.proto:5:1: Import "useful.proto" was not found or had errors.
lib.proto:8:3: "very.useful.VeryUseful" is not defined.
Target //:lib_proto failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.147s, Critical Path: 0.19s
INFO: 1 process: 1 linux-sandbox.
FAILED: Build did NOT complete successfully
@katre katre added type: bug P0 This is an emergency and more important than other current work. (Assignee required) release blocker team-Rules-Server Issues for serverside rules included with Bazel labels Aug 21, 2019
@katre katre self-assigned this Aug 21, 2019
@katre
Copy link
Member Author

katre commented Aug 21, 2019

Running a bisect, because I've identified two endpoints.

  • ce65de4 - Build works correctly (with the experimental flag disabled)
  • 7e83721 - Build fails (with the experimental flag disabled)
$ bazel-bisect ce65de4ee8e006137c8d927fa474384c0d940cb2 209175ff8ffeb05628ed8a187dd414a3d2935c55^ build --experimental_generated_protos_in_virtual_imports=false //:lib_proto

@katre
Copy link
Member Author

katre commented Aug 21, 2019

Bisect indicates that 6a667c6 is the culprit: assigning to @lberki to figure out a safe rollback.

@katre katre assigned lberki and unassigned katre Aug 21, 2019
katre pushed a commit that referenced this issue Aug 23, 2019
…he --incompatible_generated_protos_in_virtual_imports flag.

Fixes #9219.

*now* this sounds like more of an atonement for my sins...

RELNOTES: None.
PiperOrigin-RevId: 264820354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 This is an emergency and more important than other current work. (Assignee required) team-Rules-Server Issues for serverside rules included with Bazel type: bug
Projects
None yet
Development

No branches or pull requests

2 participants