bazelbuild/bazel

Add a `bazel mod` output option to print canonical names

Open

#26,798 创建于 2025年8月20日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Java (4,465 fork)batch import
P2help wantedteam-ExternalDepstype: feature request

仓库指标

Star
 (25,384 star)
PR 合并指标
 (平均合并 22天 20小时) (30 天内合并 77 个 PR)

描述

Description of the feature request:

There are a number of places where one must know the canonical name of a repo:

  • to debug an extension you wrote, it's very helpful to be able to get the path on disk of the repo you generated, and for that you need the canonical name
  • bazel mod show_repo requires a canonical name for extension repos

It would be very helpful in these cases if mod graph --extension_info all could be convinced to output the canonical names of repos instead of the apparent names, perhaps via a flag?

Which category does this issue belong to?

External Dependency

What underlying problem are you trying to solve with this feature?

Debugging an extension you're trying to write is pretty tricky right now.

Which operating system are you running Bazel on?

linux

What is the output of bazel info release?

release 8.3.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

贡献者指南