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

Use correct exit code on invalid aquery --output #13660

Conversation

illicitonion
Copy link
Contributor

Currently this exits 0, which is dangerous - scripts may assume a query
succeeded with no results, where actually it never ran.

Instead, properly exit with exit code 2.

Currently this exits 0, which is dangerous - scripts may assume a query
succeeded with no results, where actually it never ran.

Instead, properly exit with exit code 2.
@google-cla google-cla bot added the cla: yes label Jul 9, 2021
@meisterT meisterT requested a review from joeleba July 20, 2021 20:20
@bazel-io bazel-io closed this in 4158b61 Jul 21, 2021
@joeleba
Copy link
Member

joeleba commented Jul 21, 2021

Thanks for the PR!

@illicitonion illicitonion deleted the invalid-aquery-format-exit-code branch July 22, 2021 14:31
illicitonion added a commit to illicitonion/bazel that referenced this pull request Jul 22, 2021
Currently this exits 0, which is dangerous - scripts may assume a query
succeeded with no results, where actually it never ran.

Instead, properly exit with exit code 2.

Closes bazelbuild#13660.

PiperOrigin-RevId: 385959603
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants