bitter-ability-32190
08/08/2022, 3:30 PMGet(PythonExecutable, InterpreterConstraints, request.interpreter_constraints),
TypeError: Invalid Get. Because you are using the shorthand form Get(OutputType, InputType(constructor args)), the second argument should be a constructor call, rather than a type, but given <class 'pants.backend.python.util_rules.interpreter_constraints.InterpreterConstraints'>.
But the code uses the 3-arg:
Get(PythonExecutable, InterpreterConstraints, request.interpreter_constraints),bitter-ability-32190
08/08/2022, 3:33 PMbitter-ability-32190
08/08/2022, 3:34 PMhundreds-father-404
08/08/2022, 3:44 PMhundreds-father-404
08/08/2022, 3:45 PMGet moved to Rustbitter-ability-32190
08/08/2022, 3:45 PMsrc/python/pants/engine/internals/scheduler.py hmm yeahbitter-ability-32190
08/08/2022, 3:46 PMnative_engine.tasks_add_gethundreds-father-404
08/08/2022, 3:46 PMtype(InterpreterConstraints) is?bitter-ability-32190
08/08/2022, 3:47 PM<class 'pants.backend.python.util_rules.interpreter_constraints.InterpreterConstraints'>bitter-ability-32190
08/08/2022, 3:49 PMsrc/python/pants/engine/internals/rule_visitor.pyhundreds-father-404
08/08/2022, 3:50 PMbitter-ability-32190
08/08/2022, 3:50 PMbitter-ability-32190
08/08/2022, 4:05 PMNonebitter-ability-32190
08/08/2022, 4:06 PMinput_arg1 I'm guessing is coerced to Rust's None, we fall through and the engine thinks we used the 2-args ahorthandbitter-ability-32190
08/08/2022, 4:10 PM