Hi All, I'm trying to setup pants with multiple re...
# general
a
Hi All, I'm trying to setup pants with multiple resolves( uses two lockfiles- for different requirements for both projects) and have parametrized some targets(to use both resolves) to allow using shared code, but I'm running into the following error when I run pants pylint on the project that uses only one resolve
Copy code
NoCompatibleResolveException: The input targets did not have a resolve in common.
Targets used together must use the same resolve, set by the `resolve` field. For more information on 'resolves' (lockfiles), see <https://www.pantsbuild.org/v2.17/docs/python-third-party-dependencies#multiple-lockfiles>.
The pants error trace also lists a bunch of targets under each resolve but doesn't specify which targets are affected/causes this issue, making it hard to debug, is there a way to get the detailed error with the list of targets affected by the resolve issue?
h
It sounds like you may have a dependency that crosses resolves.
I don't think there's a way to change the error message, you'll need to look for a dependency that crosses between target set A and target set B, in the error
c
I think the error message could be improved to convey which targets triggered this..
a
@curved-television-6568 Is there a flag or argument to be passed in the following pants lint command to convey which targets triggered this?,
Copy code
./pants -ldebug --changed-since=origin/trunk --changed-dependents=transitive --tag='+use-airflow-pylint,-skip-lint' lint --only=pylint
c
I wouldn't think so. Hence why I think the error message could be improved.
a
Yes, for sure