Optionally assert targets are unread before replacing target_roots

Review Request #1543 - Created Dec. 26, 2014 and submitted

Information
David Taylor
pants
891
f80a52b...
Reviewers
pants-reviews
jsirois, patricklaw, zundel

Allow callers of Context.replace_targets to first ensure they are not violating other callers assumptions, specifically by asserting that targets have not previously been read by another task.

The check is opt-in for now, but is easily switched to opt-out later if it seems like a good idea.

Added tests for Context.replace_targets and Context.targets_retrieved.

./pants test tests/python/pants_test/tasks:context

https://travis-ci.org/pantsbuild/pants/builds/45157436 passed.

Issues

  • 0
  • 2
  • 0
  • 2
Description From Last Updated
David Taylor
David Taylor
Patrick Lawson
David Taylor
John Sirois
David Taylor
Review request changed

Status: Closed (submitted)

Change Summary:

21c47db0197b330361624ac179494d79d5a671d7
Loading...