curved-policeman-2796
08/30/2023, 5:59 PMpants with no (or any) arguments results in a big stack trace with
File "[snip]/site-packages/pants/backend/python/subsystems/python_tool_base.py", line 211, in default_lockfile_url
assert cls.default_lockfile_resource is not None
AssertionError
at the bottom. (Full stack trace in thread.)curved-policeman-2796
08/30/2023, 6:00 PMcurved-television-6568
08/30/2023, 6:06 PMcurved-television-6568
08/30/2023, 6:06 PMenough-analyst-54434
08/30/2023, 6:39 PMcurved-policeman-2796
08/30/2023, 7:25 PMcurved-policeman-2796
08/30/2023, 7:26 PMunfortunate that the assert didn’t include details about which class it wasluckily we only have one custom tool so I think I know the culprit
curved-policeman-2796
08/30/2023, 7:43 PMdefault_lockfile_resource = ("package-name", "whatever.lock")
to the subclass of PythonToolBase seemed to do the trick!curved-television-6568
08/30/2023, 7:58 PMdefault_lockfile_resource requirement for PythonToolBase based classes seems to be missing in the plugin upgrade guide for 2.17.