commit | e8d482496f705304d21c938ec44dc578997ae942 | [log] [tgz] |
---|---|---|
author | adonovan <adonovan@google.com> | Tue Jan 28 08:29:19 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jan 28 08:30:25 2020 -0800 |
tree | a8d11bb3cc2f648a79fb582b97e1beae1217e380 | |
parent | a9b82978acccb7249bcef09637860ec95ce3e48a [diff] |
bazel syntax: move Selector{List,Value} into lib.packages The Bazel 'select' function is no longer in Starlark.UNIVERSE. It is pre-declared in all Bazel file environments (BUILD, .bzl, WORKSPACE). This is a new category (though depset belongs in it too), exposed as StarlarkLibrary.COMMON. Also: - make various methods private - improve the annotation doc comment - remove legacyNamed for select(x={...}). There are no uses in Google's depot. A later change will merge Selector{List,Value} into a single data type that represents a node in a binary tree whose branch nodes are deferred '+' operations and whose leaves are dictionaries. While removing what looked like unnecessarily qualified class names, I discovered that BuildType.SelectorList is yet a third (!) Starlark value class representing the same concept. PiperOrigin-RevId: 291938455
{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