-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
java_common.compile should support neverlink #3735
Comments
Yes - but the progress won't be that fast on these issues, I had to prioritize some other things. They are scheduled for Q4. |
friendly ping |
@ittaiz This will have to wait for Q1. |
I wonder if, given specific need of rules_scala where I have another provider which I create myself, I'm blocked with this or not. Any ideas? |
I don't understand, can you provide more details? |
ok, scratch my previous statement. |
Thanks @ittaiz for explaining. I'm looking into this now. I'll try implementing it this week.
So you don't have the neverlink problem with the current version of
This I agree with and will be solved ASAP.
Yes let's not do this. |
We need to handle neverlink libraries in java_common (see #3735). Therefore JavaInfo needs to store the neverlink information. Instead of wrapping yet another provider (JavaNeverlinkInfoProvider) into JavaInfo, store the neverlink value directly. PiperOrigin-RevId: 179439005
Thanks! |
Hi, |
@helenalt this might become another blocker |
Sorry Ittai for the lack of replies, I have been caught up in something else. There is no update on this. Work on
I don't understand the problem. Dependencies of what? If the Do you need this in bazel 0.11.0? |
What I meant is that if we change semantics on java provider from files (current) to dependencies (WIP) then I’ll have a big problem because I can’t do the manipulation I do today. |
Can you give me an example of how you use the current
Noted. The |
Thanks!
If I understand this commit it does two things:
1. Allows creation of JavaInfo from java_common.compile with never link
attribute
2 Makes java_common.compile respect the neverlink attribute
Is that correct?
I now re read your previous question and understood where we had the
miscommunication.
I can’t use the neverlink flag today from skylark because the skylark API
is low level and talks about files (jars) and my big need for *this* issue
is so I will be able to adopt the new create_provider API which will
hopefully rolled out soon.
…On Wed, 31 Jan 2018 at 21:09 bazel.io machine account < ***@***.***> wrote:
Closed #3735 <#3735> via 223ed93
<223ed93>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3735 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF04wdr61AmQD90vGkw-0_bSwnWrHks5tQLpXgaJpZM4PXdhU>
.
|
@iirina will java_common.compile "respect" the neverlink attribute on a JavaInfo that was created with a neverlink attribute (when it tries to create its own JavaInfo)? |
Yes! |
Please provide the following information. The more we know about your system and use case, the more easily and likely we can help.
Description of the problem / feature request / question:
given I call
java_common.compile
with a dependency which isneverlink
I expect its jar to be added as a compile time dependency but not added as a runtime dependency.According to a discussion @iirina and myself had over #3528 it seems this isn't the case and will probably cause classpath pollution.
The text was updated successfully, but these errors were encountered: