-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed as not planned
Closed as not planned
Copy link
Labels
P4This is either out of scope or we don't have bandwidth to review a PR. (No assignee)This is either out of scope or we don't have bandwidth to review a PR. (No assignee)team-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websiteIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: feature request
Description
Description of the feature request:
i want to query for all generated repositories of a given module extension.
Background
Recently I was building a tool which discovers unused swift_library deps and removes them. It also replaces transitive swift_library deps with direct references. To be able to find all available Swift modules, I need to be able to query generated repos.
- For a Swift module
Foowithin my repo I ranbazel query 'attr(module_name, "^Foo$", kind("swift_library", //...))'and got target labels that match given criteria. - For a third-party swift module
RxSwiftI ranbazel query 'attr(module_name, "^RxSwift$", kind("swift_library", //...))'and got no matches as it was made available by rules_swift_package_manager as a generated repo.
It would be useful to be able to query generated repos using bazel query
Which category does this issue belong to?
Core
What underlying problem are you trying to solve with this feature?
No response
Which operating system are you running Bazel on?
macOS
What is the output of bazel info release?
release 7.5.0
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?
I asked around on Bazel Slack and was made aware that this is not possible right now.
Any other information, logs, or outputs that you want to share?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P4This is either out of scope or we don't have bandwidth to review a PR. (No assignee)This is either out of scope or we don't have bandwidth to review a PR. (No assignee)team-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websiteIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: feature request