Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return type for JavaInfo.getSourceJars() #4221

Open
dbabkin opened this issue Dec 4, 2017 · 2 comments
Open

Fix return type for JavaInfo.getSourceJars() #4221

dbabkin opened this issue Dec 4, 2017 · 2 comments
Labels
area-java-Starlark_API java_common, JavaInfo and other Starlark Java modules P2 We'll consider working on this in future. (Assignee optional) team-Rules-Java Issues for Java rules type: feature request

Comments

@dbabkin
Copy link
Contributor

dbabkin commented Dec 4, 2017

getSourceJars() returns SkylarkList now.

Should be NestedSet as was before in JavaSkylarkApiProvider and to be consistent with other methods which returns collection of Jar files.

Also consider some cleaning in scope of this task, as this method can be already used by someone.

@dbabkin dbabkin added the P3 We're not considering working on this, but happy to review a PR. (No assignee) label Dec 4, 2017
@iirina iirina added team-Rules-Java Issues for Java rules and removed category: rules > java labels Sep 9, 2019
@davido
Copy link
Contributor

davido commented Sep 9, 2019

Gerrit Code Review is affected by this issue, see this CL: [1]

Before the migration the code was:

source_jars = depset(transitive = [j.java.source_jars for j in ctx.attr.libs])

After the migration I have to construct depset from list type:

source_jars = depset(transitive = [depset(j[JavaInfo].source_jars) for j in ctx.attr.libs])

[1] https://gerrit-review.googlesource.com/c/gerrit/+/236272

@comius comius added area-java-Starlark_API java_common, JavaInfo and other Starlark Java modules P2 We'll consider working on this in future. (Assignee optional) and removed P3 We're not considering working on this, but happy to review a PR. (No assignee) labels Nov 21, 2020
@davido
Copy link
Contributor

davido commented Nov 20, 2022

Any progress here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-java-Starlark_API java_common, JavaInfo and other Starlark Java modules P2 We'll consider working on this in future. (Assignee optional) team-Rules-Java Issues for Java rules type: feature request
Projects
None yet
Development

No branches or pull requests

4 participants