fuchsia: do not read version_history.json (flutter/engine#41585)

Otherwise this causes GN to read JSON files that are irrelevant.

Co-authored-by: Marc-Antoine Ruel <maruel@google.com>
This commit is contained in:
M-A
2023-04-28 12:54:28 -04:00
committed by GitHub
parent 387bf55231
commit 1074fd7f89

View File

@@ -102,13 +102,11 @@ template("sdk_targets") {
foreach(part, meta_json.parts) {
part_meta_json = {
}
part_meta = part.meta
part_meta_rebased = "$fuchsia_sdk_path/$part_meta"
part_meta_json = read_file(part_meta_rebased, "json")
if (part_meta != "version_history.json") {
part_meta_json = read_file(part_meta_rebased, "json")
subtarget_name = part_meta_json.name
# Check if the part is using `part.element_type` or `part.type`.