-
Notifications
You must be signed in to change notification settings - Fork 213
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
[infra] Use kotlin standard libraries from the toolchain, as opposed to hard coded. #1225
Conversation
459be1f
to
22c1cff
Compare
@@ -27,3 +27,16 @@ ktlint_config( | |||
experimental_rules_enabled = False, | |||
visibility = ["//visibility:public"], | |||
) | |||
|
|||
sh_test( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a skylib macro for this that asserts if something builds.
Probably worth using just to minimize the surface area of rules Kotlin a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to run to test it. Building is easy -- but the kotlin/jvm integration will only fail if it doesn't run.
@@ -122,7 +126,7 @@ _kt_toolchain = rule( | |||
), | |||
"language_version": attr.string( | |||
doc = "this is the -language_version flag [see](https://kotlinlang.org/docs/reference/compatibility.html)", | |||
default = "2.0", | |||
default = "1.9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we going back to an older version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't merge?
Yes, this seems to work! |
master...agluszak:agluszak/fix I got 2.0 working in this branch! this is |
Modifies the toolchain to provide a common set of stdlib for the builder and jdeps merger via the classpath advice on a java binary.
Also extends the
examples/trivial
to validate the built binary executes as part of testing the java/kotlin integration.Aside from improving correctness, the hope is that this will fix the link error seen when upgrading to newer versions of kotlinc.