hundreds-breakfast-49010
07/18/2019, 12:53 AMregister_options
?aloof-angle-91616
07/18/2019, 12:54 AMaloof-angle-91616
07/18/2019, 12:54 AMhundreds-breakfast-49010
07/18/2019, 12:55 AMself.set_options_for_scope('source', source_roots=source_root_dict)
hundreds-breakfast-49010
07/18/2019, 12:55 AM--source
by itslef isn't an option, right?hundreds-breakfast-49010
07/18/2019, 12:56 AM--source-source-roots
seems to be?aloof-angle-91616
07/18/2019, 4:46 AMaloof-angle-91616
07/18/2019, 4:47 AM./pants options | grep -i source
can sometimes be a useful way to find the option you wantaloof-angle-91616
07/18/2019, 4:47 AMrg -F '--source-roots'
in the pants repo because all pants options are registered with register('--source-roots', ...)
aloof-angle-91616
07/18/2019, 6:32 PMhundreds-breakfast-49010
07/19/2019, 12:57 AMhundreds-breakfast-49010
07/19/2019, 1:07 AMhundreds-breakfast-49010
07/19/2019, 1:09 AM/pants test tests/python/pants_test/backend/graph_info/tasks:root
(my new test), there is an options type being passed to SourceRootConfig
of type OptionValueContainer
, and it's trying to insert the go source roots 'src/go/src': ('go',), 'src/main/go/src': ('go',)}
hundreds-breakfast-49010
07/19/2019, 1:09 AM./pants test tests/python/pants_test/core_tasks:roots
(the old test)hundreds-breakfast-49010
07/19/2019, 1:10 AMSourceRootConfig
gets an options value of _FakeOptionValues
(I'm printing the same variable each time)hundreds-breakfast-49010
07/19/2019, 1:10 AM{'fakeroot': ('lang1', 'lang2')}
, which is what the test should be mockinghundreds-breakfast-49010
07/19/2019, 1:11 AMwitty-crayon-22786
07/26/2019, 3:52 AMwitty-crayon-22786
07/26/2019, 3:53 AM