Skip to content

Commit 4848324

Browse files
derekmaurocopybara-github
authored andcommitted
Update URLs in Bazel Quickstart
PiperOrigin-RevId: 410041507 Change-Id: I6ca514249a54e7fbe6d8fbf4f07317a39af40929
1 parent 1b18723 commit 4848324

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/quickstart-bazel.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ See [Supported Platforms](platforms.md) for more information about platforms
1717
compatible with GoogleTest.
1818

1919
If 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}
2323
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.
2626
## Set up a Bazel workspace
2727

2828
A
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)
3030
is a directory on your filesystem that you use to manage source files for the
3131
software 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

4141
Next, you’ll create the `WORKSPACE` file to specify dependencies. A common and
4242
recommended 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)
4444
via 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).
4646
To do this, in the root directory of your workspace (`my_workspace/`), create a
4747
file 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
104104
GoogleTest (`//:gtest_main`) using the prefix you specified in the `WORKSPACE`
105105
file (`@com_google_googletest`). For more information about Bazel `BUILD` files,
106106
see 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

109109
Now you can build and run your test:
110110

0 commit comments

Comments
 (0)