rules_scala icon indicating copy to clipboard operation
rules_scala copied to clipboard

Get jar label from manifest stamp when present

Open ceason opened this issue 5 years ago • 6 comments

This PR gets a jar's label from the 'Target-Label' MANIFEST.MF attribute when available (this is what java_common.{run_ijar,stamp_jar} both populate).

ceason avatar Mar 18 '19 19:03 ceason

looks like this breaks some tests we have around unused dependencies.

Can you inspect those errors and see about fixing those tests? It may be that the test is over strict, or it may be that something really broke.

johnynek avatar Mar 18 '19 20:03 johnynek

I’ll take a look at the impl but in general this is definitely something I want to do (switch to label lookup from manifest rather than passing labels). Note that we need to use stamp_jar in scala_import and scala macro library. Also this will break some tests which talk about exports but maybe that’s the price we need to pay On Mon, 18 Mar 2019 at 22:55 P. Oscar Boykin [email protected] wrote:

looks like this breaks some tests we have around unused dependencies.

Can you inspect those errors and see about fixing those tests? It may be that the test is over strict, or it may be that something really broke.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/bazelbuild/rules_scala/pull/716#issuecomment-474097122, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUIF0Oj91xa5zR8Pn8xGr4wRvLpvD37ks5vX_0mgaJpZM4b6lv4 .

ittaiz avatar Mar 18 '19 21:03 ittaiz

This is still interesting but has seemed to get a bit stale.

@ittaiz can you take a look, and @ceason can you merge master?

johnynek avatar May 13 '19 00:05 johnynek

@ittaiz is there someone on your end that can look at this? I know the skylark label propagation is something you all wanted. It would be great to switch to the same approach that java is using.

cc @andyscott @long-stripe if you are looking for clean up tasks. :)

johnynek avatar Aug 15 '19 22:08 johnynek

We wanted it but due to disagreements with upstream java people we've dropped the usage. Essentially we allow label re-mapping (via export) whereas they determine the label at point of creation. @or-shachar maybe this is a relevant task for Shay? It will take him through a few of the interesting places.

ittaiz avatar Aug 17 '19 19:08 ittaiz

I think I’ll have someone in a month. If Long or Andy want to give it a crack I’ll be happy to guide them

ittaiz avatar Aug 28 '19 05:08 ittaiz

closing as stale, feel free to reopen

liucijus avatar Jan 31 '24 15:01 liucijus