This repository has been archived by the owner on Dec 10, 2020. It is now read-only.
forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jvm-compile][bug] Fixes other target's class dir ending up on classpath
https://rbcommons.com/s/twitter/r/3635/ introduced a regression where classpath entries for targets other than the target being compiled could end up on the compile classpath if there are multiple targets being compiled. An example. You tell pants to compile targets A, B and C. When jvm_compile creates the compile jobs, it does it in the order A, B and C. Then, for A and B instead of having their own class directories on the classpath, they'll have C's. This is because compile_context will point at C and we were using compile_context to find the class directory. This fixes it by replacing the usages of the closed over iteration variable with the passed ctx variable. It also adds a regression test. Testing Done: Wrote failing regression test and made it pass. CI away on the linked PR. Bugs closed: 3824 Reviewed at https://rbcommons.com/s/twitter/r/4198/ closes pantsbuild#3824
- Loading branch information
1 parent
8dd2df9
commit c596740
Showing
2 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters