Hey again. I try to refactor the django example to...
# general
f
Hey again. I try to refactor the django example to use the newer lockfile configs - I think it's fine to essentially get rid of all the old references of lockfiles, but I get a warning when running
generate-lockfiles
:
Copy code
[WARN] Unmatched glob from 3rdparty/python:_python-default_lockfile's `sources` field: "3rdparty/python/default.lock"
h
Which Pants version is this?
Can you post a branch that exposes this problem?
f
sure, one sec
branch is main last commit
30541c42
https://app.warp.dev/block/lf2bDzuEdvL7vghnPz7K1l
Yeah, can’t reproduce it anymore… that’s somehow unexpected to me since I didn’t change anything related to this since yesterday...
h
I remember having this issue, but I thought it was fixed in 2.16.0. Basically, when you first generate a lockfile it doesn't exist yet, so the target that wraps it issues this warning.
cc @curved-television-6568 do I remember correctly that you dealt with this?
c
Yes before it would err I believe. Ought to be ignored now rather than warn, but it’s harmless.
If you remove the lockfile and run generate again I suspect the warning comes back..
h
That's why I'm wondering about the Pants version, I feel like this should have been fixed
f
ah, maybe it was that with the django-example repo 2.16.0rcX was installed and in parallel I’ve initialized a fresh project which triggered to upgrade pants to 2.16.0?
h
Possibly, yes. Can you see if this reproduces in 2.16.0?
f
Can’t give it a try, will do later
ok, so I'm still on
rc0
and I can reproduce the behavior with deleting the lockfile
c
f
I’ve tried to upgrade with the env var set but it seems that doesn’t work for me… also pants is using Py3.9 even though I have 3.11 available via pyenv… 🤔
h
Pants will always use 3.9 to run itself
But it can use any interpreter (selected via interpreter_constraints) to run your code
f
I see ok, then I had a wrong memory ... I thought it's using the latest it can find for itself, but I guess that would be a rather risky design decision 😄
1
Hey again. how would I upgrade to rc2? (I tried homebrew and curl)
ok, via pants.toml of course
👍 2
h
Yep, just edit the version and re-run