Skip to content

Fix NPE when bazel mod command is used with bazel_tools#27379

Closed
kotlaja wants to merge 5 commits intobazelbuild:masterfrom
kotlaja:master
Closed

Fix NPE when bazel mod command is used with bazel_tools#27379
kotlaja wants to merge 5 commits intobazelbuild:masterfrom
kotlaja:master

Conversation

@kotlaja
Copy link
Copy Markdown
Contributor

@kotlaja kotlaja commented Oct 21, 2025

Fix #27233 and #27042. Add tests to cover these cases.

Current fix prints the following stdout info when bazel mod show_repo @bazel_tools is invoked:

## bazel_tools:
Builtin or overridden repo stored at: ....../external/bazel_tools

@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Oct 21, 2025
@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Oct 21, 2025
@kotlaja
Copy link
Copy Markdown
Contributor Author

kotlaja commented Oct 21, 2025

@meteorcloudy just a note, I refactored the code because @Wyverald had nice suggestions! :)

@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bazel mod show_repo @bazel_tools crashes on HEAD

3 participants