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

wooden-thailand-8386

11/10/2020, 9:05 PM
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

witty-crayon-22786

11/10/2020, 9:32 PM
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

flat-zoo-31952

11/10/2020, 9:51 PM
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)