Hi I have a mono repo with three sub-projects and ...
# general
w
Hi I have a mono repo with three sub-projects and a library that all three subprojects use. The resolve for the library parameterizes the resolves to include the resolve for each sub-project. The requirements for the three sub-projects are similar but not identical. For some reason when running pants test for the library, the tests pass for two of the three revolves. And throws an error saying that it can’t find the pydantic_extra_types library for the third resolve even thought pydantic-extra-types is in the third party lock files for all three resolves. What am I missing?
c
What's the specific error message? Third party packages need to be explicit dependencies (i.e. directly referred to in the requirements.txt file that you use to generate the lockfile or similar) and not transitive dependencies that still end up in the lockfile. I wish there was a better warning/error for this actually. There could be other reasons for this but I've found it to be a very common cause.