commit | 56babb6c14bad0c859b6540f7c729a36a794717e | [log] [tgz] |
---|---|---|
author | leba <leba@google.com> | Thu Oct 24 05:48:12 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Oct 24 05:49:16 2019 -0700 |
tree | 6ec0bfe7590fcd377d398cb0221e72e5b1c5b63d | |
parent | ab4f976cab5745031f409c77af20676116c7031f [diff] |
Fix aquery crashing bazel with malformed queries. Also, exclude the stack trace from the error message. Before: $ blaze aquery 'outputs(*some_pattern, //whatever)' Internal error thrown during build. Printing stack trace: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 *some_pattern ^ <whole stack trace> <crashes bazel> After: $ blaze aquery 'outputs(*some_pattern, //whatever)' ERROR: Wrong pattern syntax: Dangling meta character '*' near index 0 *some_pattern ^ outputs(*some_pattern, //whatever) <no crashing> RELNOTES: Fix an aquery bug with handling malformed queries that crashes bazel. PiperOrigin-RevId: 276469979
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md