diff options
author | Abseil Team <absl-team@google.com> | 2022-12-22 17:30:51 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-22 17:31:36 (GMT) |
commit | 71140c3ca7a87bb1b5b9c9f1500fea8858cce344 (patch) | |
tree | bda7d2433e0c0c2f84fced004c70192a07cfd845 /docs | |
parent | 5ab508a01f9eb089207ee87fd547d290da39d015 (diff) | |
download | googletest-71140c3ca7a87bb1b5b9c9f1500fea8858cce344.zip googletest-71140c3ca7a87bb1b5b9c9f1500fea8858cce344.tar.gz googletest-71140c3ca7a87bb1b5b9c9f1500fea8858cce344.tar.bz2 |
Use a more recent commit of googletest that uses OS constraints from
@platforms//os:* instead of from @build_tools//platforms:*
See https://github.com/bazelbuild/bazel/issues/8622
Necessary to fix #4096
Also need the fix for #4098
PiperOrigin-RevId: 497182073
Change-Id: Ifd568b088d2f779755dd20264edfd5dad12ca9cc
Diffstat (limited to 'docs')
-rw-r--r-- | docs/quickstart-bazel.md | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/quickstart-bazel.md b/docs/quickstart-bazel.md index 853139a..15c27a2 100644 --- a/docs/quickstart-bazel.md +++ b/docs/quickstart-bazel.md @@ -19,9 +19,8 @@ compatible with GoogleTest. If you don't already have Bazel installed, see the [Bazel installation guide](https://bazel.build/install). -{: .callout .note} -Note: The terminal commands in this tutorial show a Unix shell prompt, but the -commands work on the Windows command line as well. +{: .callout .note} Note: The terminal commands in this tutorial show a Unix +shell prompt, but the commands work on the Windows command line as well. ## Set up a Bazel workspace @@ -51,16 +50,16 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "com_google_googletest", - urls = ["https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip"], - strip_prefix = "googletest-609281088cfefc76f9d0ce82e1ff6c30cc3591e5", + urls = ["https://github.com/google/googletest/archive/5ab508a01f9eb089207ee87fd547d290da39d015.zip"], + strip_prefix = "googletest-5ab508a01f9eb089207ee87fd547d290da39d015", ) ``` The above configuration declares a dependency on GoogleTest which is downloaded as a ZIP archive from GitHub. In the above example, -`609281088cfefc76f9d0ce82e1ff6c30cc3591e5` is the Git commit hash of the +`5ab508a01f9eb089207ee87fd547d290da39d015` is the Git commit hash of the GoogleTest version to use; we recommend updating the hash often to point to the -latest version. +latest version. Use a recent hash on the `main` branch. Now you're ready to build C++ code that uses GoogleTest. |