Hello there. We're experimenting with lockfiles an...
# general
w
Hello there. We're experimenting with lockfiles and after managing to resolve our dependencies we're getting
Copy code
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants.testutil<2.17,>=2.16.0a0
ERROR: No matching distribution found for pantsbuild.pants.testutil<2.17,>=2.16.0a0
we're using 2.16.0 Anybody could give me some pointers where to look?
l
What’s the instruction you are trying to run that is giving you this error?
Do you have
testutil
as part of a requirements file somewhere?
w
./pants generate-lockfiles --resolve=megapip
I just found the build file where it is referenced. Now I tried putting it to a separate resolve like this
pants_requirements(name="pants.testutil", resolve="testy")
Still not good enough...
But worked if I added that resolve to another one
Copy code
pants_requirements(name="pants.testutil", resolve="testy")
pants_requirements(name="pants", resolve="testy")
Thanks for looking at it!
👍 1
h
So previously you had
pants_requirements
for testutil but not for pants itself?
That's the thing that didn't work?
w
No, I had it there for both, but didn't add the resolve to the latter (
pants_requirements(name="pants")
) turned out they had to be in the same group. So it was a user error
h
Well glad it works now!