Merge "bazel overlay: fix regression to "list of string" bpdocs type."
This commit is contained in:
commit
b0a713acf9
|
@ -370,7 +370,7 @@ func createRuleShims(packages []*bpdoc.Package) (map[string]RuleShim, error) {
|
||||||
|
|
||||||
// Canonicalize and normalize module property types to Bazel attribute types
|
// Canonicalize and normalize module property types to Bazel attribute types
|
||||||
starlarkAttrType := prop.Type
|
starlarkAttrType := prop.Type
|
||||||
if starlarkAttrType == "list of strings" {
|
if starlarkAttrType == "list of string" {
|
||||||
starlarkAttrType = "string_list"
|
starlarkAttrType = "string_list"
|
||||||
} else if starlarkAttrType == "int64" {
|
} else if starlarkAttrType == "int64" {
|
||||||
starlarkAttrType = "int"
|
starlarkAttrType = "int"
|
||||||
|
|
|
@ -277,7 +277,7 @@ func createPackageFixtures() []*bpdoc.Package {
|
||||||
},
|
},
|
||||||
bpdoc.Property{
|
bpdoc.Property{
|
||||||
Name: "string_list_prop",
|
Name: "string_list_prop",
|
||||||
Type: "list of strings",
|
Type: "list of string",
|
||||||
},
|
},
|
||||||
bpdoc.Property{
|
bpdoc.Property{
|
||||||
Name: "nested_prop",
|
Name: "nested_prop",
|
||||||
|
|
Loading…
Reference in New Issue