hey qq, anytime I run `./pants run projects/myproj...
# general
w
hey qq, anytime I run
./pants run projects/myproject::
it really wants to resolve the
constraints.txt
which takes… 500+ seconds… but if I use
./pants package
the first run is slower but then it’s super fast.. something weird or is this expected?
ok so it happened 3 times and now it’s fine 😕
w
this probably relates to https://github.com/pantsbuild/pants/issues/10513 , which is closed now (
package
and
run
do not use the same resolve command, and thus the same cache entry): moving forward, i think that https://github.com/pantsbuild/pants/issues/11105 is going to be the ticket to watch
all of these commands should use “the same” resolve.
👍 1
f
you can set
[python-setup].resolver_http_cache_ttl
to a high value (it's in seconds) to make this happen less often
👍 2
but it will still happen whenever cache keys change ( like if you change constraints.txt)