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

DO NOT MERGE #25171

Closed
wants to merge 15 commits into from
Closed

DO NOT MERGE #25171

wants to merge 15 commits into from

Conversation

gnossen
Copy link
Contributor

@gnossen gnossen commented Jan 14, 2021

No description provided.

@jtattermusch
Copy link
Contributor

Looks like there might be one additional-problem to solve but it does seem to fix the original problem?

ERROR: An error occurred during the fetch of repository 'com_google_protobuf':
   Traceback (most recent call last):
	File "/root/.cache/bazel/_bazel_root/217030ec3ef64241bbb4e12700124ac3/external/bazel_tools/tools/build_defs/repo/http.bzl", line 121, column 10, in _http_archive_impl
		patch(ctx)
	File "/root/.cache/bazel/_bazel_root/217030ec3ef64241bbb4e12700124ac3/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 135, column 22, in patch
		ctx.patch(patchfile, strip)
Error in patch: Unable to load package for //third_party:protobuf.patch: BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /var/local/git/grpc/bazel/test/python_test_repo/third_party
Loading: 0 packages loaded
ERROR: no such package '@com_google_protobuf//': Unable to load package for //third_party:protobuf.patch: BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.

Once that works, I can cherry-pick the commits into my PR #25131 (if @gnossen thinks this is the best way of solving this problem). If we end up using this workaround, at what point we will be able to get rid of it?

@gnossen
Copy link
Contributor Author

gnossen commented Jan 15, 2021

Yes. I'm glad we have the python_test_repo test. The change without my most recent commit would have broken us for downstream dependencies. I just pushed a commit to fix that.

If we end up using this workaround, at what point we will be able to get rid of it?

Quoting my response from your protobuf update PR:

So it turns out that the Envoy project dealt with this problem before us. The Protobuf team has intentionally removed their namespace package declarations from the __init__.py file, instead declaring them in their setup.py file, which we do not consume at all. It seems that this solution is only necessary until all other packages using the google namespace package (google-auth) do the same. I've implemented that solution in our repo here.

@stale
Copy link

stale bot commented Jun 2, 2021

This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 30 days. It will be closed automatically if no further update occurs in 7 day. Thank you for your contributions!

@stale stale bot closed this Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants