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

v23-rc2: Error in fail: Source does not start with src/: ../com_google_protobuf/src/google/protobuf/any.proto #12620

Closed
suztomo opened this issue May 1, 2023 · 0 comments
Assignees
Labels

Comments

@suztomo
Copy link
Contributor

suztomo commented May 1, 2023

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:

  1. Checkout protobuf tag v23.0-rc2
  2. Checkout github.com/googleapis/googleapis project
  3. Run
    bazelisk build //google/actions/type:date_range_py_proto \
        --verbose_failures \
        --override_repository=com_google_protobuf=${GITHUB_WORKSPACE}/protobuf
    
  4. 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.

@suztomo suztomo added the untriaged auto added to all issues by default when created. label May 1, 2023
@shaod2 shaod2 added 23.x and removed untriaged auto added to all issues by default when created. labels May 1, 2023
deannagarcia added a commit to deannagarcia/protobuf that referenced this issue May 2, 2023
deannagarcia added a commit to deannagarcia/protobuf that referenced this issue May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants