rich-arm-33877
03/14/2024, 3:34 PMMappingError: Failed to parse <subproject dir>/docs/BUILD:
ParseError: <subproject dir>/docs/BUILD:41: Name 'adhoc_tool' is not defined.
I guess subproject_roots
doesn't infer nested backend packages?
I haven't yet figured out all that's needed to be added to the closed/parent project for us to work around it but so far it doesn't pick up
• backend packages: adhoc
, docformatter
• nested resolves:
UnrecognizedResolveNamesError: Unrecognized resolve name from the field `resolve` in the target <subproject dir>:docformatter: docformatter
So if anyone knows the easiest way to get around this please let me know! Trying to build the docs (pants package <subproject dir>/docs
) in the WIP Pants branch with a somewhat minimal parent-pants.toml should at least be a decent subproject example.curved-television-6568
03/14/2024, 4:11 PMrich-arm-33877
03/15/2024, 6:43 AMpants run //:binary-using-subproject
it seems to not have inferred the dependencies correctly either way
InvalidFieldException: src/py/emote: Failed to get dependencies for <subproject dir>:root#gymnasium: The file or directory <subproject dir>/<subproject dir>/pyproject.toml' does not exist on disk in the workspace, so the address '<subproject dir>/<subproject dir>/pyproject.toml:root' from the `dependencies` field from the target <subproject dir>:root#gymnasium cannot be resolved.
(notice the path to the subproject dir/root getting duplicated/nested in it self). Maybe I can get around that by not referencing dependencies by //root#dep
in the subproject but rather in some explicit way like //emote#dep
?curved-television-6568
03/15/2024, 7:42 AMgorgeous-winter-99296
03/15/2024, 9:53 AMgorgeous-winter-99296
03/15/2024, 10:02 AMrich-arm-33877
03/15/2024, 10:10 AMrich-arm-33877
03/15/2024, 10:11 AMgorgeous-winter-99296
03/15/2024, 10:12 AMrich-arm-33877
03/15/2024, 10:13 AMrich-arm-33877
03/15/2024, 10:13 AMgorgeous-winter-99296
03/15/2024, 10:14 AMx
and when used from the parent package that isn't defined?rich-arm-33877
03/15/2024, 10:30 AM11:30:41.03 [ERROR] 1 Exception encountered:
Engine traceback:
in `dependencies` goal
ResolveError: The address `<subproject dir>/docs:docs` from <infallible> was not generated by the target `<subproject dir>/docs:docs`. Did you mean one of these addresses?
* <subproject dir>/docs@resolve=cpu
* <subproject dir>/docs/conf.py@resolve=cpu
* <subproject dir>/docs@resolve=gpu
* <subproject dir>/docs/conf.py@resolve=gpu
* <subproject dir>/docs@resolve=base
* <subproject dir>/docs/conf.py@resolve=base
rich-arm-33877
03/15/2024, 10:31 AMbase
, cpu
and gpu
as resolvesgorgeous-winter-99296
03/15/2024, 10:33 AM__defaults__()
in docs/BUILD
.rich-arm-33877
03/15/2024, 10:35 AM