rules_kotlin
rules_kotlin copied to clipboard
Relativize jar paths in jdeps and rework `BazelRunFiles` to return relative paths
Fixes #941
We found that certain Kotlin versions, 1.8.10 for example can produce absolute paths in jdeps output. Although this is fixed in 1.8.20 (not sure which commit caused this on Kotlin side), this PR ensures jdeps jars always use relative path.
- Added test to assert all jar paths in jdeps are relative
- Updated test builder to use relative paths for assertions
Seems RBE is failing, will revisit.
@arunkumar9t2 PR looks good to me as long as you can take care of the RBE case.