Skip to content

Update six version to 1.12.0 and fix legacy_create_init issue#6391

Merged
acozzette merged 3 commits intoprotocolbuffers:masterfrom
aaliddell:six-version
Aug 15, 2019
Merged

Update six version to 1.12.0 and fix legacy_create_init issue#6391
acozzette merged 3 commits intoprotocolbuffers:masterfrom
aaliddell:six-version

Conversation

@aaliddell
Copy link
Contributor

When the @six//:six library is used on a target without the legacy_create_init flag disabled, the library will not be usable due to init.py being empty and the six code will be in six.py. This change forces six to occupy the init name, preventing this file getting created regardless of the legacy_create_init setting.

See comments on a74c43b for context.

aaliddell referenced this pull request Jul 16, 2019
* Fix reference to six in //:protobuf_python rule

* Add six to protobuf_deps.bzl

* Use six archive directly as repo @six
@TeBoring TeBoring requested a review from anandolee July 17, 2019 16:53
@laszlocsomor
Copy link
Contributor

Hey, any updates on this?

The protobuf project on Bazel CI is still broken, so we won't know if Bazel can still build protobuf.

@acozzette
Copy link

@aaliddell Thank you for fixing this. Could you merge master (or rebase) again? It looks like the CI tests won't run if the PR can't be merged automatically.

When the @six//:six library is used on a target without the
`legacy_create_init` flag disabled, the library will not be
usable due to __init__.py being empty and the six code will
be in six.py. This change forces six to occupy the __init__
name, preventing this file getting created regardless of
the `legacy_create_init` setting.

See comments on a74c43b for
context:
protocolbuffers@a74c43b
Archive is declared in the protobuf_deps() call above
@aaliddell
Copy link
Contributor Author

Rebase done

@aaliddell
Copy link
Contributor Author

The test failures again do not look related to the changes in this PR

@acozzette acozzette merged commit c60aaf7 into protocolbuffers:master Aug 15, 2019
Yannic added a commit to Yannic/rules_proto_bazelbuild that referenced this pull request Aug 19, 2019
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.

7 participants