summaryrefslogtreecommitdiffstats
path: root/docs/quickstart-bazel.md
diff options
context:
space:
mode:
authorDerek Mauro <dmauro@google.com>2021-11-15 19:50:45 (GMT)
committerCopybara-Service <copybara-worker@google.com>2021-11-15 19:51:27 (GMT)
commit4848324c5ff3186a7f72a674f6760d0b8da585d7 (patch)
tree6cae7bf86bca54a42db3ed2160668da1a63028d9 /docs/quickstart-bazel.md
parent1b18723e874b256c1e39378c6774a90701d70f7a (diff)
downloadgoogletest-4848324c5ff3186a7f72a674f6760d0b8da585d7.zip
googletest-4848324c5ff3186a7f72a674f6760d0b8da585d7.tar.gz
googletest-4848324c5ff3186a7f72a674f6760d0b8da585d7.tar.bz2
Update URLs in Bazel Quickstart
PiperOrigin-RevId: 410041507 Change-Id: I6ca514249a54e7fbe6d8fbf4f07317a39af40929
Diffstat (limited to 'docs/quickstart-bazel.md')
-rw-r--r--docs/quickstart-bazel.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/quickstart-bazel.md b/docs/quickstart-bazel.md
index 3a63a27..5d6e9c6 100644
--- a/docs/quickstart-bazel.md
+++ b/docs/quickstart-bazel.md
@@ -17,7 +17,7 @@ See [Supported Platforms](platforms.md) for more information about platforms
compatible with GoogleTest.
If you don't already have Bazel installed, see the
-[Bazel installation guide](https://docs.bazel.build/versions/master/install.html).
+[Bazel installation guide](https://docs.bazel.build/versions/main/install.html).
{: .callout .note}
Note: 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.
## Set up a Bazel workspace
A
-[Bazel workspace](https://docs.bazel.build/versions/master/build-ref.html#workspace)
+[Bazel workspace](https://docs.bazel.build/versions/main/build-ref.html#workspace)
is a directory on your filesystem that you use to manage source files for the
software you want to build. Each workspace directory has a text file named
`WORKSPACE` which may be empty, or may contain references to external
@@ -40,9 +40,9 @@ $ mkdir my_workspace && cd my_workspace
Next, you’ll create the `WORKSPACE` file to specify dependencies. A common and
recommended way to depend on GoogleTest is to use a
-[Bazel external dependency](https://docs.bazel.build/versions/master/external.html)
+[Bazel external dependency](https://docs.bazel.build/versions/main/external.html)
via the
-[`http_archive` rule](https://docs.bazel.build/versions/master/repo/http.html#http_archive).
+[`http_archive` rule](https://docs.bazel.build/versions/main/repo/http.html#http_archive).
To do this, in the root directory of your workspace (`my_workspace/`), create a
file named `WORKSPACE` with the following contents:
@@ -104,7 +104,7 @@ This `cc_test` rule declares the C++ test binary you want to build, and links to
GoogleTest (`//:gtest_main`) using the prefix you specified in the `WORKSPACE`
file (`@com_google_googletest`). For more information about Bazel `BUILD` files,
see the
-[Bazel C++ Tutorial](https://docs.bazel.build/versions/master/tutorial/cpp.html).
+[Bazel C++ Tutorial](https://docs.bazel.build/versions/main/tutorial/cpp.html).
Now you can build and run your test: