func ExtractModuleToApparentNameMapping(repoRoot string) (func(string) string, error)
ExtractModuleToApparentNameMapping collects the mapping of module names (e.g. "rules_go") to user-configured apparent names (e.g. "my_rules_go") from the repos MODULE.bazel, if it exists. See https://bazel.build/external/module#repository_names_and_strict_deps for more information on apparent names.