@@ -17,7 +17,7 @@ See [Supported Platforms](platforms.md) for more information about platforms
1717compatible with GoogleTest.
1818
1919If you don't already have Bazel installed, see the
20- [ Bazel installation guide] ( https://docs.bazel.build/versions/master /install.html ) .
20+ [ Bazel installation guide] ( https://docs.bazel.build/versions/main /install.html ) .
2121
2222{: .callout .note}
2323Note: The terminal commands in this tutorial show a Unix shell prompt, but the
@@ -26,7 +26,7 @@ commands work on the Windows command line as well.
2626## Set up a Bazel workspace
2727
2828A
29- [ Bazel workspace] ( https://docs.bazel.build/versions/master /build-ref.html#workspace )
29+ [ Bazel workspace] ( https://docs.bazel.build/versions/main /build-ref.html#workspace )
3030is a directory on your filesystem that you use to manage source files for the
3131software you want to build. Each workspace directory has a text file named
3232` WORKSPACE ` which may be empty, or may contain references to external
@@ -40,9 +40,9 @@ $ mkdir my_workspace && cd my_workspace
4040
4141Next, you’ll create the ` WORKSPACE ` file to specify dependencies. A common and
4242recommended way to depend on GoogleTest is to use a
43- [ Bazel external dependency] ( https://docs.bazel.build/versions/master /external.html )
43+ [ Bazel external dependency] ( https://docs.bazel.build/versions/main /external.html )
4444via the
45- [ ` http_archive ` rule] ( https://docs.bazel.build/versions/master /repo/http.html#http_archive ) .
45+ [ ` http_archive ` rule] ( https://docs.bazel.build/versions/main /repo/http.html#http_archive ) .
4646To do this, in the root directory of your workspace (` my_workspace/ ` ), create a
4747file named ` WORKSPACE ` with the following contents:
4848
@@ -104,7 +104,7 @@ This `cc_test` rule declares the C++ test binary you want to build, and links to
104104GoogleTest (` //:gtest_main ` ) using the prefix you specified in the ` WORKSPACE `
105105file (` @com_google_googletest ` ). For more information about Bazel ` BUILD ` files,
106106see the
107- [ Bazel C++ Tutorial] ( https://docs.bazel.build/versions/master /tutorial/cpp.html ) .
107+ [ Bazel C++ Tutorial] ( https://docs.bazel.build/versions/main /tutorial/cpp.html ) .
108108
109109Now you can build and run your test:
110110
0 commit comments