Add library parameter to GoPackageInfo Starlark constructor
We can't trivial replicate the behaviour of this in Starlark without
exposing even more detail.
@@ -52,6 +52,15 @@ public interface GoPackageInfoApi extends StructApi {
named = true,
allowedTypes = {@ParamType(type = FileApi.class), @ParamType(type = NoneType.class)}),
@Param(name = "imports", positional = false, named = true),
+ @Param(
+ name = "library",
+ positional = false,
+ named = true,
+ allowedTypes = {
+ @ParamType(type = GoPackageInfoApi.class),
+ @ParamType(type = NoneType.class)
+ },
+ defaultValue = "None"),
@Param(name = "test", positional = false, named = true),
@Param(
name = "is_proto_library",
@@ -66,6 +75,7 @@ public interface GoPackageInfoApi extends StructApi {
Sequence<?> srcs,
Object exportDataObject,
Sequence<?> imports,
+ Object library,
boolean test,
boolean isProtolibrary)
throws EvalException;
