bazel overlay: fix regression to "list of string" bpdocs type.
A recent change to Blueprint [1] added the feature to infer the type of
list elements to more than just "list of strings", but this also changed
the text to "list of string" (without s). This CL fixes the bazel
overlay, which uses "list of strings".
Test: m bazel_overlay && bazel query //... --package_path=out/soong/bazel_overlay
[1]: 764a771917
%5E%21/#F1
Change-Id: I7522d15b1ce751807e1881ce1e94f068d226b316
This commit is contained in:
parent
af3bf0dd5d
commit
222ff4d186
|
@ -370,7 +370,7 @@ func createRuleShims(packages []*bpdoc.Package) (map[string]RuleShim, error) {
|
|||
|
||||
// Canonicalize and normalize module property types to Bazel attribute types
|
||||
starlarkAttrType := prop.Type
|
||||
if starlarkAttrType == "list of strings" {
|
||||
if starlarkAttrType == "list of string" {
|
||||
starlarkAttrType = "string_list"
|
||||
} else if starlarkAttrType == "int64" {
|
||||
starlarkAttrType = "int"
|
||||
|
|
|
@ -277,7 +277,7 @@ func createPackageFixtures() []*bpdoc.Package {
|
|||
},
|
||||
bpdoc.Property{
|
||||
Name: "string_list_prop",
|
||||
Type: "list of strings",
|
||||
Type: "list of string",
|
||||
},
|
||||
bpdoc.Property{
|
||||
Name: "nested_prop",
|
||||
|
|
Loading…
Reference in New Issue