Update GoPackageInfo Starlark constructor for proto_library inputs.
@@ -44,7 +44,7 @@ public interface GoPackageInfoApi extends StructApi {
name = PROVIDER_NAME,
documented = false,
parameters = {
- @Param(name = "non_proto_library_label", positional = false, named = true),
+ @Param(name = "label", positional = false, named = true),
@Param(name = "srcs", positional = false, named = true),
@Param(
name = "export_data",
@@ -53,6 +53,11 @@ public interface GoPackageInfoApi extends StructApi {
allowedTypes = {@ParamType(type = FileApi.class), @ParamType(type = NoneType.class)}),
@Param(name = "imports", positional = false, named = true),
@Param(name = "test", positional = false, named = true),
+ @Param(
+ name = "is_proto_library",
+ positional = false,
+ named = true,
+ defaultValue = "False"),
},
selfCall = true)
@StarlarkConstructor
@@ -61,7 +66,8 @@ public interface GoPackageInfoApi extends StructApi {
Sequence<?> srcs,
Object exportDataObject,
Sequence<?> imports,
- boolean test)
+ boolean test,
+ boolean isProtolibrary)
throws EvalException;
}
}
