Prior to that, here's a snippet of the stack trace...
# general
g
Prior to that, here's a snippet of the stack trace:
Copy code
File "/home/rakan/myproduct/build/pants-plugins/python/tasks/wheel.py", line 41, in execute
    with self.invalidated(wheels, invalidate_dependents=True) as invalidation_check:
  File "/home/rakan/.pyenv/versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/rakan/.cache/pants/setup/bootstrap-Linux-x86_64/1.2.1/lib/python2.7/site-packages/pants/task/task.py", line 381, in invalidated
    self._maybe_create_results_dirs(invalidation_check.all_vts)
  File "/home/rakan/.cache/pants/setup/bootstrap-Linux-x86_64/1.2.1/lib/python2.7/site-packages/pants/task/task.py", line 471, in _maybe_create_results_dirs
    vt.create_results_dir(self.workdir)
  File "/home/rakan/.cache/pants/setup/bootstrap-Linux-x86_64/1.2.1/lib/python2.7/site-packages/pants/invalidation/cache_manager.py", line 202, in create_results_dir
    self.ensure_legal()
  File "/home/rakan/.cache/pants/setup/bootstrap-Linux-x86_64/1.2.1/lib/python2.7/site-packages/pants/invalidation/cache_manager.py", line 129, in ensure_legal
    errors = ''

Exception message:
The results_dirs state should not be manually cleaned or recreated by tasks.