https://pantsbuild.org/ logo
#general
Title
# general
p

proud-dentist-22844

12/17/2022, 3:16 AM
I'm having some issues with python interpreter constraints. I had one default interpreter constraint that I'm using for my primary resolve and all the tools. But, I also have a separate
pants-plugins
resolve that matches pants' interpreter constraints. When I started trying to run some tests, I ran into some conflicting constraints (InvalidLockfileError), so I tried making the default constraints be a superset of all the resolves. https://github.com/StackStorm/st2/pull/5847/commits/9f26453cb0ff86ff6007a8acc093673431916efc But now I'm getting different constraints conflict (InvalidLockfileError) issues: https://github.com/StackStorm/st2/actions/runs/3718138874/jobs/6306123192#step:5:32 What am I missing? (I'm on pants 2.14.0)
1
e

enough-analyst-54434

12/17/2022, 4:00 AM
Have you used this tool to see what rogue target(s) are the violators in "The targets use interpreter constraints (
CPython<3.10,>=3.6
) that are not a subset of those used to generate the lockfile (
CPython<3.9,>=3.6
)"?: https://www.pantsbuild.org/docs/python-interpreter-compatibility#tip-activate-pantsbackendpythonmixed_interpreter_constraints
p

proud-dentist-22844

12/17/2022, 4:21 AM
Hmm. I will try that thanks
Thank you. I read that page a long time ago, and forgot about it. I've now fixed my constraints so that I'm not getting any InvalidLockfileErrors any more.
2 Views