-
Notifications
You must be signed in to change notification settings - Fork 16.1k
v23-rc2: Error in fail: Source does not start with src/: ../com_google_protobuf/src/google/protobuf/any.proto #12620
Description
What version of protobuf and what language are you using?
Version: main/v3.6.0/v3.5.0 etc. (NOTE: please try updating to the latest version of protoc/runtime possible beforehand to attempt to resolve your problem)
Language: Python
What operating system (Linux, Windows, ...) and version?
Linux
What runtime / compiler are you using (e.g., python version or gcc version)
N/A
What did you do?
Steps to reproduce the behavior:
- Checkout protobuf tag v23.0-rc2
- Checkout github.com/googleapis/googleapis project
- Run
bazelisk build //google/actions/type:date_range_py_proto \ --verbose_failures \ --override_repository=com_google_protobuf=${GITHUB_WORKSPACE}/protobuf - See error.
Alternatively, you can visit https://github.com/suztomo/googleapis/actions/runs/4851732298/jobs/8645887032
What did you expect to see
Bulid success
What did you see instead?
Build failure
Analyzing: target //google/actions/type:date_range_py_proto (41 packages loaded, 53 targets configured)
ERROR: /github/home/.cache/bazel/_bazel_root/db20678a24995ca8ed517a40b2e86ea0/external/com_google_protobuf/python/BUILD.bazel:53:20: in internal_copy_files_impl rule @com_google_protobuf//python:copied_wkt_proto_files:
Traceback (most recent call last):
File "/github/home/.cache/bazel/_bazel_root/db20678a24995ca8ed517a40b2e86ea0/external/com_google_protobuf/python/internal.bzl", line 11, column 17, in _internal_copy_files_impl
fail("Source does not start with %s: %s" %
Error in fail: Source does not start with src/: ../com_google_protobuf/src/google/protobuf/any.proto
ERROR: /github/home/.cache/bazel/_bazel_root/db20678a24995ca8ed517a40b2e86ea0/external/com_google_protobuf/python/BUILD.bazel:53:20: Analysis of target '@com_google_protobuf//python:copied_wkt_proto_files' failed
INFO: Repository go_sdk instantiated at:
/__w/googleapis/googleapis/googleapis/WORKSPACE:183:23: in <toplevel>
/github/home/.cache/bazel/_bazel_root/db20678a24995ca8ed517a40b2e86ea0/external/io_bazel_rules_go/go/private/sdk.bzl:431:28: in go_register_toolchains
/github/home/.cache/bazel/_bazel_root/db20678a24995ca8ed517a40b2e86ea0/external/io_bazel_rules_go/go/private/sdk.bzl:130:21: in go_download_sdk
Repository rule _go_download_sdk defined at:
/github/home/.cache/bazel/_bazel_root/db206[78](https://github.com/suztomo/googleapis/actions/runs/4851732298/jobs/8645887032#step:6:79)a24995ca8ed517a40b2e86ea0/external/io_bazel_rules_go/go/private/sdk.bzl:117:35: in <toplevel>
ERROR: Analysis of target '//google/actions/type:date_range_py_proto' failed; build aborted:
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
@deannagarcia wrote to me about https://github.com/protocolbuffers/upb/blob/main/bazel/protobuf.patch#L42 but it requires a migration to "proto_common" that is blocked by a few other issues.