commit | 8a43e0cb973ab979da8140bc31fd94651537ce5b | [log] [tgz] |
---|---|---|
author | arostovtsev <arostovtsev@google.com> | Fri Apr 16 14:19:59 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Apr 16 14:21:01 2021 -0700 |
tree | 86afed388eb3e1743e096654c6233b13378ea5df | |
parent | 414f3c817079013be60bf41b6697867278f3dbda [diff] |
Fix type of `arguments` param in `ctx.actions.run()` and `run_shell()` In both cases, we want to restrict the type to a Sequence in Java (to avoid an unsafe cast) and to document it as a sequence of unspecified type in Starlark API docs (unfortunately, ParamType annotations currently don't allow us to express a Sequence containing 2 different allowed types possibly intermixed). This prevents a Bazel crash when trying to use a scalar string value for the `arguments` param in `ctx.actions.run_shell()`. RELNOTES: None. PiperOrigin-RevId: 368918401
{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