commit | 5bff601f1444598b48fe41075d25866dc436a56c | [log] [tgz] |
---|---|---|
author | messa <messa@google.com> | Wed Mar 17 03:42:23 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Mar 17 03:43:31 2021 -0700 |
tree | 581141f844c9006707cecfcb9d4ee6655fcb076e | |
parent | 8a885d8ad9084eb7709e401136c0c96e1976967c [diff] |
Pass shadowed action environment to the Starlark action. This CL adds a new method to Action interface: `getEffectiveEnvironment` which returns the effective environment used to run the action based on given client environment. This method is called by the Starlark action to extend its environment with its shadowed action's environment before execution. The two environments variables are merged so that the Starlark variables can overwrite any of the shadowed action's environment variables. PiperOrigin-RevId: 363384154
{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