Skip to content

Commit 71140c3

Browse files
Abseil Teamcopybara-github
authored andcommitted
Use a more recent commit of googletest that uses OS constraints from
@platforms//os:* instead of from @build_tools//platforms:* See bazelbuild/bazel#8622 Necessary to fix #4096 Also need the fix for #4098 PiperOrigin-RevId: 497182073 Change-Id: Ifd568b088d2f779755dd20264edfd5dad12ca9cc
1 parent 5ab508a commit 71140c3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/quickstart-bazel.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ compatible with GoogleTest.
1919
If you don't already have Bazel installed, see the
2020
[Bazel installation guide](https://bazel.build/install).
2121

22-
{: .callout .note}
23-
Note: The terminal commands in this tutorial show a Unix shell prompt, but the
24-
commands work on the Windows command line as well.
22+
{: .callout .note} Note: The terminal commands in this tutorial show a Unix
23+
shell prompt, but the commands work on the Windows command line as well.
2524

2625
## Set up a Bazel workspace
2726

@@ -51,16 +50,16 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
5150
5251
http_archive(
5352
name = "com_google_googletest",
54-
urls = ["https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip"],
55-
strip_prefix = "googletest-609281088cfefc76f9d0ce82e1ff6c30cc3591e5",
53+
urls = ["https://github.com/google/googletest/archive/5ab508a01f9eb089207ee87fd547d290da39d015.zip"],
54+
strip_prefix = "googletest-5ab508a01f9eb089207ee87fd547d290da39d015",
5655
)
5756
```
5857

5958
The above configuration declares a dependency on GoogleTest which is downloaded
6059
as a ZIP archive from GitHub. In the above example,
61-
`609281088cfefc76f9d0ce82e1ff6c30cc3591e5` is the Git commit hash of the
60+
`5ab508a01f9eb089207ee87fd547d290da39d015` is the Git commit hash of the
6261
GoogleTest version to use; we recommend updating the hash often to point to the
63-
latest version.
62+
latest version. Use a recent hash on the `main` branch.
6463

6564
Now you're ready to build C++ code that uses GoogleTest.
6665

0 commit comments

Comments
 (0)