Q. When applying caching to Pants with GitHub Acti...
# general
r
Q. When applying caching to Pants with GitHub Actions, is it enough to set the cache key as
${{ runner.os }}-
only as the doc/example suggests? The workflow log always says that "it is not saving the cache because the cache is hit", meaning that any newly updated contents would not reside inside the cache.
Ideally, we should use
hashFiles()
or some other mechanism that lets
actions/cache
know if the cache requires update.
Would it be the right place to use
hashFiles()
against the lock files and
pants.toml
, for instance?
p