diff --git a/site/en/external/module.md b/site/en/external/module.md index 5c240a5253c4fc..6e6d44abab5d7c 100644 --- a/site/en/external/module.md +++ b/site/en/external/module.md @@ -206,6 +206,7 @@ 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.,