From 3fea7d62d4f990c07ce7639010f0032a5ccdf1bc Mon Sep 17 00:00:00 2001 From: "bazel.build machine account" Date: Mon, 10 Jun 2024 14:32:52 -0400 Subject: [PATCH] [7.3.0] Format "Repository names and strict deps" bullet list (#22679) The bullet list in the "Repository names and strict deps" section of https://bazel.build/external/module does not render properly on the website. However, other bullet lists on this page do render correctly. The difference is apparently the level of indentation. This PR attempts to correct the discrepancy. Closes #22663. PiperOrigin-RevId: 641904379 Change-Id: I9d97841731ec99bad91796fff3fd3d62426b10ff Commit https://github.com/bazelbuild/bazel/commit/f6687ad45eccfa7928c9a54f3db2e3c660d9bbce Co-authored-by: David Sanderson <32687193+dws@users.noreply.github.com> --- site/en/external/module.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/site/en/external/module.md b/site/en/external/module.md index 09869263d9f3a3..4bf6dee1832c37 100644 --- a/site/en/external/module.md +++ b/site/en/external/module.md @@ -206,18 +206,18 @@ multiple versions of the module in the entire dependency graph (see Note that **the canonical name format** is not an API you should depend on and **is subject to change at any time**. Instead of hard-coding the canonical name, use a supported way to get it directly from Bazel: -* In BUILD and `.bzl` files, use - [`Label.repo_name`](/rules/lib/builtins/Label#repo_name) on a `Label` instance - constructed from a label string given by the apparent name of the repo, e.g., - `Label("@bazel_skylib").repo_name`. -* When looking up runfiles, use - [`$(rlocationpath ...)`](https://bazel.build/reference/be/make-variables#predefined_label_variables) - or one of the runfiles libraries in - `@bazel_tools//tools/{bash,cpp,java}/runfiles` or, for a ruleset `rules_foo`, - in `@rules_foo//foo/runfiles`. -* When interacting with Bazel from an external tool such as an IDE or language - server, use the `bazel mod dump_repo_mapping` command to get the mapping from - apparent names to canonical names for a given set of repositories. +* In BUILD and `.bzl` files, use + [`Label.repo_name`](/rules/lib/builtins/Label#repo_name) on a `Label` instance + constructed from a label string given by the apparent name of the repo, e.g., + `Label("@bazel_skylib").repo_name`. +* When looking up runfiles, use + [`$(rlocationpath ...)`](https://bazel.build/reference/be/make-variables#predefined_label_variables) + or one of the runfiles libraries in + `@bazel_tools//tools/{bash,cpp,java}/runfiles` or, for a ruleset `rules_foo`, + in `@rules_foo//foo/runfiles`. +* When interacting with Bazel from an external tool such as an IDE or language + server, use the `bazel mod dump_repo_mapping` command to get the mapping from + apparent names to canonical names for a given set of repositories. [Module extensions](/external/extension) can also introduce additional repos into the visible scope of a module.