Conversation
Users currently have to compose `$(bazel info output_base)/external/<canonical name>` by hand to locate a fetched repo on disk. `bazel mod show_repo` now prints the path of each repo's root directory as a `# Located at:` comment in text output and as the new `repo_root` field in the streamed proto and JSON outputs. The path is derived without fetching the repo, so the directory only exists after the repo has been fetched. RELNOTES: `bazel mod show_repo` now prints the path of each repo's root directory, as a `# Located at:` comment in text output and as the `repo_root` field in proto and JSON output.
fmeum
force-pushed
the
claude/mod-repo-root-d3h3bs
branch
from
September 17, 2026 10:50
7c127c5 to
747d8b9
Compare
fmeum
commented
Sep 17, 2026
fmeum
marked this pull request as ready for review
September 17, 2026 10:51
keith
approved these changes
Sep 17, 2026
meteorcloudy
approved these changes
Sep 18, 2026
| [example](#mod-example6)). Use `--all_repos` to show definitions of all | ||
| repos in the entire dependency graph, or `--all_visible_repos` to show | ||
| definitions of all repos visible from the `--base_module`. | ||
| * `show_repo <arg>...`: Displays the definition and location of the |
Member
There was a problem hiding this comment.
nit: Should we hint that this location will only materialize after the repo is fetched?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Motivation
Give users an easy way to obtain the location of an external repo, especially one that avoids them having to compose it manually and hardcoding
external.Build API Changes
No
Checklist
Release Notes
RELNOTES:
bazel mod show_reponow prints the path of each repo's directory as a# Located at:comment in text output and as the newrepo_rootfield in proto and JSON output.