bazelbuild / bazelbuild/bazel

Augment Bazel query syntax to support external modules

Open
#26,653 4 comments 0 reactions 0 assignees View on GitHub
P2 team-ExternalDeps type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Motivation

Bazel query syntax can capture all packages recursively via `//...` but this only supports the `_main` module.
If you would like to capture EVERYTHING including third-party repositories, there is no such syntax.

This can be useful for things like package_groups where you might want to select everything but toggle away certain groups.

Right now there is no solution this problem except for numerating all your third-party modules manually in the package_group

[Slack thread](https://bazelbuild.slack.com/archives/CA31HN1T3/p1753629794374009) with additional information.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named in the issue. Start by reviewing the Bazel query syntax behavior described here and the linked Slack thread; done means a query syntax can capture all packages, including third-party repositories, without manually enumerating external modules.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.