aloof-angle-91616
05/13/2019, 3:42 PMself.add_to_build_file()
in a ConsoleRuleTestBase
? i'm going to have to table working on this for now, but the @console_rule
itself works, and the testing should too, i just haven't had time to dive into how to get my file contents into the sources snapshot. https://github.com/pantsbuild/pants/pull/7419average-vr-56795
05/13/2019, 3:44 PM.target
that’s the one that’s failing in that PR?aloof-angle-91616
05/13/2019, 3:45 PM-k
will drop you into a pdb prompt which should show a mock target successfully created and accessible within a rule, but the sources snapshot is the empty digestaverage-vr-56795
05/13/2019, 3:46 PMaloof-angle-91616
05/13/2019, 3:46 PMaverage-vr-56795
05/13/2019, 3:52 PMcreate_workdir_file
to make the thrift file, where you want to be using create_file
workdir
means “directory where pants stores some stuff” not “working directory”aloof-angle-91616
05/13/2019, 6:01 PM