Skip to content

Commit

Permalink
Make sure directory digest is defined for cache hits (pantsbuild#6442)
Browse files Browse the repository at this point in the history
Not useful, but defined. Which is better than python raising because it isn't defined.
  • Loading branch information
illicitonion authored Sep 3, 2018
1 parent 6221f3a commit 1ec7de8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,9 @@ def work_for_vts(vts, ctx):
# Double check the cache before beginning compilation
hit_cache = self.check_cache(vts, counter)

# TODO: Load from store when https://github.com/pantsbuild/pants/issues/6429 is complete.
directory_digest = None

if not hit_cache:
# Compute the compile classpath for this target.
dependency_cp_entries = self._zinc.compile_classpath_entries(
Expand Down

0 comments on commit 1ec7de8

Please sign in to comment.