Hey Pants folks. I see that mypy caching was merge...
# general
p
Hey Pants folks. I see that mypy caching was merged just about a year ago (https://github.com/pantsbuild/pants/issues/10864). But when I run
pants typecheck
it still re-checks my entire repo every time. I'm on pants
2.13.0
. Do I need to configure something to get the goodness?
1
b
It looks like that feature was first released in 2.14.0, so the configuration required is an upgrade of your pants version
p
oh! 2.13 came out months after that fix so I assumed that wasn't it. Will try upgrading. Thanks.
b
ah, yeah. There's often weeks-to-months of release candidates on a separate branch, so that would've merged to
main
for 2.14, while 2.13 was still being prepped on
2.13.x
(definitely not obvious from the PR, though) If you're looking to upgrade to the latest 2.16, I believe it's often easier to go one step at a time (i.e. 2.14.0 then 2.15.0, then finally 2.16.0): https://www.pantsbuild.org/docs/upgrade-tips#upgrade-one-minor-release-at-a-time
p
Thanks. Putting together a PR now to upgrade our repo. We'll see how it goes...
Worked like a charm. So much faster!! Thanks.
👍 1