hundreds-breakfast-49010
02/25/2020, 1:20 AMhundreds-breakfast-49010
02/25/2020, 1:21 AMrepl goal, it seems like PythonToolBase.get_entry_point on the IPython subsystem is failing because there's no entry_point option on the Subsystemhundreds-breakfast-49010
02/25/2020, 1:22 AMhundreds-father-404
02/25/2020, 3:58 PMsubsystem_rule(IPython) in src/python/pants/backend/python/rules/repl.py. I think the only reason this works in production is that IPython is registered as a global subsystem in V1hundreds-breakfast-49010
02/25/2020, 6:24 PMhundreds-breakfast-49010
02/25/2020, 6:24 PMhundreds-breakfast-49010
02/25/2020, 6:34 PMhundreds-breakfast-49010
02/25/2020, 6:36 PMPythonToolBase.get_entry_point that is saying that the result of get_options in the test is a _FakeOptionValueshundreds-breakfast-49010
02/25/2020, 6:37 PMget_entry_point blows up because entry_point doesn't exist on that objecthundreds-breakfast-49010
02/25/2020, 6:37 PMentry_pointhundreds-breakfast-49010
02/25/2020, 6:45 PMhundreds-breakfast-49010
02/25/2020, 6:45 PMhundreds-breakfast-49010
02/25/2020, 6:45 PMglobal_instance in v2 `@rule`s?hundreds-father-404
02/25/2020, 6:48 PMshould we just avoid invoking global_instance in v2 @rules?yes, you should. That is a V1 idiom that reaches into global state. In V2, you should explicitly declare that you have a dependency on that subsystem
hundreds-breakfast-49010
02/25/2020, 6:57 PM