Merge "bazel overlay: fix regression to "list of string" bpdocs type."

This commit is contained in:
Jingwen Chen 2020-11-06 00:04:04 +00:00 committed by Gerrit Code Review
commit b0a713acf9
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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",