https://pantsbuild.org/ logo
r

refined-addition-53644

05/25/2022, 6:21 PM
Hi, I am trying to use multiple resolves for each sub-project. I have also defined a
default_resolve
I have a local
pants-plugin
folder which has
pants_requirements()
and this complains that it can't find a valid resolve name. I thought if I don't provide it an explicit resolve, it would use the
default_resolve
.
2
h

hundreds-father-404

05/25/2022, 7:16 PM
yeah, it will use the default. What's the error?
r

refined-addition-53644

05/25/2022, 8:01 PM
Copy code
./pants test ::              
22:00:07.40 [INFO] Initializing scheduler...
22:00:07.57 [INFO] Scheduler initialized.
22:00:10.67 [ERROR] 1 Exception encountered:

  UnrecognizedResolveNamesError: Unrecognized resolve name from the field `resolve` in the target pants-plugins#pantsbuild.pants: pyfleet

All valid resolve names: ['etl', 'vehicle_spec']
This is snippet from
pants.toml
Copy code
[python]
interpreter_constraints = ["CPython>=3.9,<3.11"]
enable_resolves = true
default_resolve = "pyfleet"

[python.resolves]
etl = "3rdparty/pyfleet_etl.lock"
vehicle_spec = "3rdparty/pyfleet_vehicle_spec.lock"
Do I need to define path for the
default_resolve
too?
yeah that's what was missing.
👍 1
16 Views