https://pantsbuild.org/ logo
#development
Title
# development
h

happy-kitchen-89482

12/02/2022, 4:55 PM
Can someone clarify the distinction between named_caches and append_only_caches, and specifically how each should be cached in CI config?
e

enough-analyst-54434

12/02/2022, 5:03 PM
They are the same, we tripped over our own tongues.
2 names, same thing.
h

happy-kitchen-89482

12/02/2022, 5:16 PM
😠
😂 4
w

wide-midnight-78598

12/02/2022, 5:41 PM
h

happy-kitchen-89482

12/02/2022, 6:05 PM
So what do we use them for in JVM land? Looks like Coursier state, but what does that encompass? I.e., what would we suggest JVM users mix into CI cache keys for that dir? Lockfiles? I guess lockfiles…
a

ancient-vegetable-10556

12/02/2022, 6:13 PM
@happy-kitchen-89482 the Coursier caches are: downloaded maven packages and actual JVMs, not a whole lot more.
it basically allows Pants to download a pants-managed runtime JVM precisely once on a given machine
h

happy-kitchen-89482

12/02/2022, 8:41 PM
So it is dependent on the lockfile, sounds like
a

ancient-vegetable-10556

12/02/2022, 8:41 PM
and the JVM selection settings
h

happy-kitchen-89482

12/02/2022, 8:41 PM
Those are in pants.toml, which is already in the key
I assume?
a

ancient-vegetable-10556

12/02/2022, 8:42 PM
JvmJdkField
h

happy-kitchen-89482

12/02/2022, 8:43 PM
… and this is why remote caching is so superior to CI caching
a

ancient-vegetable-10556

12/02/2022, 8:44 PM
Happy Friday