commit | 0b6378c7106e177174caf7d61158d3c8319cc8b8 | [log] [tgz] |
---|---|---|
author | adonovan <adonovan@google.com> | Tue Feb 11 06:49:09 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Feb 11 06:50:12 2020 -0800 |
tree | 53a95fdaa781171ede03542178ec2d7d4db13ef6 | |
parent | ad7e4e3f5b60cae3ae5335fb7ce0254184069330 [diff] |
bazel syntax: improve error for dynamic use-before-definition The error emitted for a dynamic use-before-definition in a BUILD file used to look confusingly like a static error: "name x is not defined; did you mean...?" Such errors are expected in programs like 'print(x); x=1' where there is no misspelling. This change makes the error resemble the dynamic error in a .bzl file: "variable x referenced before assignment", which makes clear that there is an assignment for x, it just hasn't been executed yet. PiperOrigin-RevId: 294428556
{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