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.
Introduce explicit cache writing job in RscCompile task (pantsbuild#8190
) ### Problem Rsc outlining and zinc compiles of a target will race to write to the cache. This will usually result in no zinc classes in the artifact due because zinc will hit the cache during the cache double-check, causing runtime classpath to be missing classes. ### Solution Create an explicit cache-write job dependent on the Rsc and zinc jobs completing, removing the cache write from those jobs. ### Result Artifacts for `rsc-and-zinc` targets will deterministically contain both Rsc and zinc classfiles as expected.
- Loading branch information
Showing
3 changed files
with
217 additions
and
43 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
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