Skip to content

Update rules_pkg to 0.2.5 and use real rules_python - #11191

Closed
aiuto wants to merge 1 commit into
bazelbuild:masterfrom
aiuto:pkg_update
Closed

aiuto wants to merge 1 commit into
bazelbuild:masterfrom
aiuto:pkg_update

Conversation

@aiuto

@aiuto aiuto commented Apr 22, 2020

Copy link
Copy Markdown

No description provided.

@brandjon brandjon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think I added the stub repo because it seemed less intimidating than a real dependency. But now it seems I choose the more complicated option.

Comment thread WORKSPACE
Comment on lines +123 to +131
# XXXX This is a mock version of bazelbuild/rules_python that contains only
# @rules_python//python:defs.bzl. It is used by protobuf.
# TODO(#9029): We could potentially replace this with the real @rules_python.
#new_local_repository(
# name = "rules_python",
# build_file = "//third_party/rules_python:BUILD",
# path = "./third_party/rules_python",
# workspace_file = "//third_party/rules_python:rules_python.WORKSPACE",
#)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you intended to delete these lines?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I just have not yet because I keep flipping back and forth to figure out the build error.

Comment thread WORKSPACE
#new_local_repository(
# name = "rules_python",
# build_file = "//third_party/rules_python:BUILD",
# path = "./third_party/rules_python",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems we can submit a follow-up to remove this stub repo from //third_party. I'll draft the PR. (Can't be in this PR since we can't do third_party changes atomically with ordinary changes.)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my intent, but the failures are not transient. They reproduce locally. All of the protobufs go wonky.

@brandjon

Copy link
Copy Markdown
Member

No idea what the test failures are about... transient issue with unpacking third_party?

@philwo

philwo commented Sep 23, 2020

Copy link
Copy Markdown
Member

What's the status of this PR?

@aiuto

aiuto commented Sep 24, 2020

Copy link
Copy Markdown
Author

It is still a WIP blocked on #9046. That, in turn, is a WIP which turned into an overly complex project because the workspace tests should not depend on pkg_tar.

@aiuto

aiuto commented Nov 10, 2020

Copy link
Copy Markdown
Author

Abandoning this line of reasoning. The tests should be rewritten to not depend on rules_pkg, and thus, transitively, rules_python.

@aiuto aiuto closed this Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants