Migrating to Bazel Modules (a.k.a. Bzlmod) - Repo Names, Macros, and Variables The previous two posts in this series showed how to use [runfiles mechanisms][1]and [rules_pkg mechanisms][2] to avoid dealing with canonical repository namesunder Bzlmod. However, one special case remains: when you need to depend on thename of a repository directory, either at build time or runtime. This postexplains how to access canonical repository names in a portable way to solvesuch problems. We'll use a [mac...