-
-
Notifications
You must be signed in to change notification settings - Fork 286
Should scala_import
return jar output file provider (in addition to java_common provider)?
#476
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
Comments
|
@lberki |
Sorry for being vague; What I meant is that |
@lberki, This is the relevant code from scala_import:
Do you suggest to return another provider ( |
Yep. That would also help with Bazel doing something useful if e.g. a |
I ran into this issue and noticed #477 to refactor scala_import. I opened a PR to #477's branch to add a There's no test. I can add one. I'm interested in getting people's feedback, considering I'm not very familiar with |
Do you have a problem this would solve?
If not let’s please not add this to 477 which is already a hard PR to
review due to the rewrite
…On Fri, 13 Apr 2018 at 6:24 James Judd ***@***.***> wrote:
I ran into this issue and noticed #477
<#477> to refactor
scala_import. I opened a PR to #477
<#477 branch branch to
add a DefaultInfo with files: andyscott#1
<https://github.com/andyscott/rules_scala/pull/1>
There's no test. I can add one. I'm interested in getting people's
feedback, considering I'm not very familiar with DefaultInfo and that the
documentation is a bit sparse.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF8NcAkesf67bAPG97vKVJ_cqMVrPks5toBqEgaJpZM4TMh9C>
.
|
I perhaps incorrectly assumed that #477 was close to being merged, so I added a PR there in an effort to avoid merge conflicts. I did not intend to make things more difficult :) I'm happy to close my PR to #477 and wait to open another PR for this issue until #477 is merged. It does solve a problem for us, but I have this fix on our fork, so I have no problem with waiting. |
Thank you @jjudd for writing this PR. It would be nice to remove this duplication |
During work on this PR I've noticed that location expansion of jars exposed by
scala_import
fails:For example
$(location @com_google_guava_guava_21_0//jar)
fails withlabel '@com_google_guava_guava_21_0//jar:jar' in $(location) expression expands to no files.
when the jar target is of typerules_scala
So it seems that
scala_import
is missing a feature for exposing jar output files.@lberki are bazel rules idiomatically expected to output files?
The text was updated successfully, but these errors were encountered: