With bazel I can use a GCS bucket as a cache. Can ...
# general
p
With bazel I can use a GCS bucket as a cache. Can I do the same with pants? https://bazel.build/remote/caching#cloud-storage
b
No, pants only supports Bazel's remote execution gRPC API, which includes caching. It is possible to use a tool like https://github.com/buchgr/bazel-remote locally backed by GCS (or S3 or ...). This is what Pants does it itself, in CI: https://github.com/pantsbuild/pants/blob/e0ef5b83820ce5d269516a3ce5c04f5fc354a9ab/build-support/bin/generate_github_workflows.py#L201-L250 (https://github.com/pantsbuild/pants/issues/11149 is the relevant issue)
p
Oh thanks. Glad I'm asking... questions people are 😃 I'm not crazy.