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

[bazel] Update gtest and deprecate //external:{gtest,gtest_main} #7237

Merged
merged 1 commit into from Mar 2, 2020

Conversation

Yannic
Copy link
Contributor

@Yannic Yannic commented Feb 21, 2020

This change updates the gtest-version used by Bazel.
Also, //external:{gtest,gtest_main} is deprecated so we can remove some
of the uses of the discouraged bind function.

RELNOTES[bazel]: Starting with Protobuf 3.13.0, building and running
Protobuf tests requires @com_google_googletest//:{gtest,gtest_main}
instead of //external:{gtest,gtest_main}. Use
--@com_google_protobuf//:incompatible_use_com_google_googletest=true
to verify your workspace is not affected by this change.

This change updates the gtest-version used by Bazel.
Also, `//external:{gtest,gtest_main}` is deprecated so we can remove some
of the uses of the discouraged `bind` function.

RELNOTES[bazel]: Starting with Protobuf 3.13.0, building and running
Protobuf tests requires `@com_google_googletest//:{gtest,gtest_main}`
instead of `//external:{gtest,gtest_main}`. Use
`--@com_google_protobuf//:incompatible_use_com_google_googletest=true`
to verify your workspace is not affected by this change.
@Yannic
Copy link
Contributor Author

Yannic commented Feb 21, 2020

Note that this only changes the gtest version for Bazel. Other builds still use the submodule.

Updating the submodules isn't possible because gtest removed support for autotools (#6590).

@Yannic
Copy link
Contributor Author

Yannic commented Feb 29, 2020

@rafi-kamal Thanks for your review!

As usual, MacOS PHP & Python failures are unrelated. For Mergable, does it make sense to add bazel to the list of labels for release notes: yes https://github.com/protocolbuffers/protobuf/blob/master/.github/mergeable.yml#L14?

@rafi-kamal
Copy link
Contributor

I think that sounds good, I've sent out #7275.

@rafi-kamal rafi-kamal merged commit 2e51ad6 into protocolbuffers:master Mar 2, 2020
dlj-NaN added a commit to dlj-NaN/protobuf that referenced this pull request Sep 23, 2020
The gtest source was changed in protocolbuffers#7237 on an opt-in basis, and has been
released since 3.12.0. The comments state that the default should change
in 3.13.0, but that didn't quite happen.

This change does flip the default, and updates comments to say 3.14.0.
dlj-NaN added a commit to dlj-NaN/protobuf that referenced this pull request Oct 2, 2020
The gtest source was changed in protocolbuffers#7237 on an opt-in basis, and has been
released since 3.12.0. The comments state that the default should change
in 3.13.0, but that didn't quite happen.

This change does flip the default, and updates comments to say 3.14.0.
dlj-NaN added a commit that referenced this pull request Oct 3, 2020
The gtest source was changed in #7237 on an opt-in basis, and has been
released since 3.12.0. The comments state that the default should change
in 3.13.0, but that didn't quite happen.

This change does flip the default, and updates comments to say 3.14.0.
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

4 participants