commit | f6ef1558843fc847e15dd11516e20f098b1ad325 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Jan 15 22:04:38 2021 -0800 |
committer | Colin Cross <ccross@android.com> | Fri Jan 15 22:21:28 2021 -0800 |
tree | e1f0f69093fa1747d4dd1054bd08929d3beb9665 | |
parent | 461d95061e8d6df642359fe202d71f8bd83b1d9d [diff] |
Use UnpackError for incorrect property type errors Returning a fmt.Errorf error causes Blueprint to identify the error as an "internal error", return an UnpackError instead. Bug: 177706602 Test: TestUnpackErrors Change-Id: I19fba134ad778d08d5a4d90a0335bdf8cbea6a20
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja manifest describing the commands that need to be run and their dependencies. Where most build systems use built-in rules or a domain-specific language to describe the logic for converting module descriptions to build rules, Blueprint delegates this to per-project build logic written in Go. For large, heterogenous projects this allows the inherent complexity of the build logic to be maintained in a high-level language, while still allowing simple changes to individual modules by modifying easy to understand Blueprints files.