-
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
Expose default/warn strict_java_deps mode to skylark #3626
Comments
@iirina this is the issue we discussed |
btw, is it wise to have OFF as the default value? This feels like anti bazel idioms |
oh, now I see that the default value is
|
@iirina bazel/src/main/java/com/google/devtools/build/lib/rules/java/JavaSkylarkCommon.java Line 463 in 2abc654
I wasn't able to find tests though so I can send the PR as is. FYI what I tried was to try changing the switch below to switch("") and ran the test bazel test //src/test/java/... and nothing fails.
|
Hi Ittai, I already have a change for this. I'm waiting for it to be pushed. It should be in bazel today. |
Awesome, thanks! |
BTW, did you include upper-casing? Since the command line docs are for lowercase but the switch on the string is upper-case. |
Also another problem I saw when I hacked on this was that I got an exception from |
Yes
Yes you are right, the |
sounds good. Whatever the default means for java_* rules I think it should apply here as well. |
Hi, |
Yes, it should be here with the next push to GH. We had some problems with submitting changes internally. |
Description of the problem / feature request / question:
I'm integrating
java_common.compile
into rules_scala where we want to usestrict_java_deps
flag for compilation of java code and of scala code.The beginning of this started in #3295.
While trying to integrate with it I get an error if I try to pass
warn
as an input.I then saw that
default
isn't allowed as well.I think it's obvious why I'd want
warn
and I needdefault
since to the best of my understanding that is one of the possible values I can get fromctx.fragments.java.strict_java_deps
(IIUC this will be the value when no value is given).Environment info
bazel info release
):0.5.3
The text was updated successfully, but these errors were encountered: