fix cloc, filemap, list-owners and changed when they come across deferred_sources
Review Request #3830 — Created May 5, 2016 and discarded — Latest diff uploaded
Information | |
---|---|
cheister | |
pants | |
fix-deferred-targets | |
3326 | |
Reviewers | |
pants-reviews | |
jsirois, stuhood, zundel |
fix cloc, filemap, list-owners and changed when they come across deferred_sources
Travis CI: https://travis-ci.org/pantsbuild/pants/builds/128563441
This should fix the error:
Exception message: Field requires a call to populate() before this method can be called.When calling
changed
,cloc
,filedep
orlist-owners
on a target that depends on a deferred_source targetIt seemed like having the tasks require
deferred_sources
in aprepare
method would be the better way to fix this@classmethod def prepare(cls, options, round_manager): ... round_manager.require_data('deferred_sources')But that only worked for
cloc
, and did not work for the failing test incloc