Skip to content

Commit

Permalink
Add library parameter to GoPackageInfo Starlark constructor
Browse files Browse the repository at this point in the history
We can't trivial replicate the behaviour of this in Starlark without
exposing even more detail.

PiperOrigin-RevId: 386407724
  • Loading branch information
c-mita authored and copybara-github committed Jul 23, 2021
1 parent 3d6c206 commit 9e98339
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ public interface Provider extends ProviderApi {
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",
Expand All @@ -66,6 +75,7 @@ GoPackageInfoApi createGoPackageInfo(
Sequence<?> srcs,
Object exportDataObject,
Sequence<?> imports,
Object library,
boolean test,
boolean isProtolibrary)
throws EvalException;
Expand Down

0 comments on commit 9e98339

Please sign in to comment.