Merge "Annotate FIXME for b/200678898"

This commit is contained in:
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
2021-09-23 17:18:49 +00:00
committed by Gerrit Code Review

View File

@@ -934,6 +934,8 @@ func filterArchStruct(field reflect.StructField, prefix string) (bool, reflect.S
if len(values) > 0 && values[0] != "path" { if len(values) > 0 && values[0] != "path" {
panic(fmt.Errorf("unknown tags %q in field %q", values, prefix+field.Name)) panic(fmt.Errorf("unknown tags %q in field %q", values, prefix+field.Name))
} else if len(values) == 1 { } else if len(values) == 1 {
// FIXME(b/200678898): This assumes that the only tag type when there's
// `android:"arch_variant"` is `android` itself and thus clobbers others
field.Tag = reflect.StructTag(`android:"` + strings.Join(values, ",") + `"`) field.Tag = reflect.StructTag(`android:"` + strings.Join(values, ",") + `"`)
} else { } else {
field.Tag = `` field.Tag = ``