commit | 7fe7047e6e6aec82f78cca366f0604dd606a5e7e | [log] [tgz] |
---|---|---|
author | Taras Tsugrii <ttsugrii@fb.com> | Wed Jul 25 13:58:02 2018 -0700 |
committer | Copybara-Service <copybara-piper@google.com> | Wed Jul 25 13:59:42 2018 -0700 |
tree | 72b158530314b509a9637ba33af1dfa124085e19 | |
parent | 59a0b3f7c9d69b7be3be23ee57a8c058130ac9e8 [diff] |
[Skylark] Support dictionaries in structs when serializing them using struct.to_json. Dictionaries are frequently used for generic configuration descriptions especially given that `struct` is not allowed in build files. In order to be JSON-compatible, only dictionaries with string keys are allowed. Technically Python also allows integers and booleans by automatically converting them to strings, but this is confusing and not necessarily a good thing to do. Fixes #5542 Closes #5543. PiperOrigin-RevId: 206049754
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds 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
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.