Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relaxing scope rules for genquery() #22244

Open
ahmedyarub opened this issue May 6, 2024 · 1 comment
Open

Relaxing scope rules for genquery() #22244

ahmedyarub opened this issue May 6, 2024 · 1 comment
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc type: feature request untriaged

Comments

@ahmedyarub
Copy link

Description of the feature request:

Relax the requirement for scopes in some cases, for instance, if we only care about scopes.

Which category does this issue belong to?

Rules API

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

Ability to simulate the command: bazel query "//...:all" --output package
I did test that locally in my machine (removing all the scope checks) and it worked without any problem.

genquery(
    name = "genquery",
    expression = "//services/...:all",
    opts = [
        "--output=package",
    ],
    scope = ["all"],
    strict = False,
)

Which operating system are you running Bazel on?

Microsoft Windows [Version 10.0.26200.5001]

What is the output of bazel info release?

7.1.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 ?

No response

Have you found anything relevant by searching the web?

No

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

No response

@github-actions github-actions bot added the team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts label May 6, 2024
@comius comius added team-Core Skyframe, bazel query, BEP, options parsing, bazelrc and removed team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts labels May 15, 2024
@comius
Copy link
Contributor

comius commented May 15, 2024

Core team is more familiar with genquery and query functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc type: feature request untriaged
Projects
None yet
Development

No branches or pull requests

5 participants