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 test ... fails #6997

Closed
blackliner opened this issue Dec 8, 2019 · 2 comments
Closed

bazel test ... fails #6997

blackliner opened this issue Dec 8, 2019 · 2 comments
Labels

Comments

@blackliner
Copy link

blackliner commented Dec 8, 2019

Isn't the repo supposed to work out of the box, i.e.

git clone git@github.com:protocolbuffers/protobuf.git
cd protobuf
bazel test ...

I get this error, pointing to some gmock issues?

ERROR: <somewhere>/protobuf/WORKSPACE:25:1: //external:gtest depends on @submodule_gmock//:gtest in repository @submodule_gmock which failed to fetch. no such package '@submodule_gmock//': No WORKSPACE file found in <somewhere>/172c83d5655e7b67c62e3888010a602f/external/submodule_gmock
ERROR: <somewhere>/protobuf/WORKSPACE:30:1: //external:gtest_main depends on @submodule_gmock//:gtest_main in repository @submodule_gmock which failed to fetch. no such package '@submodule_gmock//': No WORKSPACE file found in <somewhere>/172c83d5655e7b67c62e3888010a602f/external/submodule
@dlj-NaN
Copy link
Contributor

dlj-NaN commented Sep 23, 2020

FYI, this was addressed in #7237, but the default hasn't landed yet.

For now, you can verify with:

$ bazel test --@com_google_protobuf//:incompatible_use_com_google_googletest=true ...

The default is updated in #7907, tentatively targeted for 3.14.0 (or HEAD, if you use HEAD).

@elharo
Copy link
Contributor

elharo commented Sep 13, 2021

fixed

@elharo elharo closed this as completed Sep 13, 2021
@elharo elharo added the bazel label Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants