ripe-gigabyte-88964
09/21/2023, 4:54 PMpants.toml
but I'm getting a ModuleNotFoundError
for a dependency my plugin has when trying to run pants. There's nothing abnormal about my dependency, it's in my pants-plugins
lockfile and using pants dependencies
I can see the dependency inference is working correctly. What gives?ripe-gigabyte-88964
09/21/2023, 4:58 PMpants peek
for my requirement
[
{
"address": "pants-plugins/plugins/my_plugin:yte",
"target_type": "python_requirement",
"dependencies": [],
"dependencies_raw": null,
"description": null,
"entry_point": null,
"modules": null,
"requirements": [
"yte"
],
"resolve": "pants-plugins",
"tags": null,
"type_stub_modules": null
}
]
late-advantage-75311
09/21/2023, 5:01 PMlate-advantage-75311
09/21/2023, 5:02 PM# pants.toml
[GLOBAL]
plugins = ["ansicolors==1.18.0"]
late-advantage-75311
09/21/2023, 5:02 PMYou can depend on third-party dependencies in your in-repo plugin by adding them to theoption:plugins
ripe-gigabyte-88964
09/21/2023, 5:04 PMripe-gigabyte-88964
09/21/2023, 5:04 PMplugins
rather than something like plugin_dependencies
is kinda confusinggorgeous-winter-99296
09/21/2023, 5:06 PMgorgeous-winter-99296
09/21/2023, 5:15 PMbackends
, pythonpath
, and plugins
and the pattern becomes a bit more clear. Both plugins
and pythonpath
add things to the "host" Pants, and the backends
option lists modules directly inside that world.)