googletest version 1.17.0 not compatible with Bazel 9.0 #4922
Unanswered
TomPreisner
asked this question in
Community Help
Replies: 2 comments 1 reply
-
|
1.17.0 is the latest google test version, so, although I have not used Bazel myself, I would say the issue is on their side, not GoogleTest. Looking at your code, it seems to me that the workaround would be to use something like
or whatever number bazel supports. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I 'fixed' the bazel 9.0 incompatibility issue in a personal project by using a git override and taking googletest from HEAD. I don't think this is an ideal approach, what we really need is a bazel 9.0-compatible tagged release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been setting up a project and incorporating the googletest version 1.17.0 into it via
bazel_dep(name = "googletest", version = "1.17.0")However, I am running into this error:
WARNING: Build option --cxxopt has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed). ERROR: Traceback (most recent call last): File "C:/users/tprei/_bazel_tprei/tonzrp22/external/googletest+/BUILD.bazel", line 79, column 11, in <toplevel> cc_library( File "/virtual_builtins_bzl/bazel/exports.bzl", line 40, column 9, in _removed_rule_failure Error in fail: This rule has been removed from Bazel. Please add aload()statement for it. This can also be done automatically by running: buildifier --lint=fix <path-to-BUILD-or-bzl-file>It seems that as of Bazel 9.0 all
cc_*rules were migrated tocc_ruleshttps://github.com/bazelbuild/bazel/releases/tag/9.0.0
All C++-related rules (including cc_binary, cc_library, etc.) have been removed from Bazel and are now located in rules_cc.Is there a workaround for this or will I need to rollback to an earlier Bazel version to use the googletest libraries?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions