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

[Bug]: Cannot run an "aquery" without specifying a target, thus not able to use --skyframe-state option #738

Open
lqc opened this issue Aug 29, 2024 · 0 comments
Labels
bug Something isn't working untriaged Requires traige

Comments

@lqc
Copy link

lqc commented Aug 29, 2024

What happened?

The wrapper around aquery command checks if there are any non-flag arguments provided and if not, presents a prompt to select a preset. This happens even if you explicitly pass --aspect:interactive=false.

Currently the --skyframe-state option requires that you do NOT pass a target. This type of query is used by some tools, namely cdxgen (CycloneDX/cdxgen#531).

Using aspect CLI presents those tools from running bazel aquery --output=textproto --skyframe_state query.

Version

Development (host) and target OS/architectures:

Output of bazel --version:

aspect 5.10.14

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

Not relevant

Language(s) and/or frameworks involved:

cdxgen --version
10.9.5

How to reproduce

Run  aquery --output=textproto --skyframe_state 0</dev/null will fail, but it should succed without reading anything from standard input.

Any other information?

No response

@lqc lqc added the bug Something isn't working label Aug 29, 2024
@github-actions github-actions bot added the untriaged Requires traige label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Requires traige
Projects
None yet
Development

No branches or pull requests

1 participant