elegant-art-7479
06/03/2025, 8:53 AMpants.toml
under [GLOBAL]
:
remote_cache_read = true
remote_cache_write = true
remote_store_address = "<grpc://localhost:9092>"
remote_instance_name = "main"
and:
1. I see no difference in how Pants works.
2. The directory mounted to the cache's running container doesn't have any actual files, just some indices.
What am I doing wrong? How can I debug it?elegant-art-7479
06/03/2025, 9:29 AMelegant-art-7479
06/03/2025, 9:34 AM{pants.hash}
in an image's tag. How can I get the hash without actually building an image, so that I can fetch a desired image?elegant-art-7479
06/03/2025, 9:40 AMpants.hash
is calculated only in DockerBuildContext
here: https://github.com/pantsbuild/pants/blob/5bb87c7b88c3e008ced9c48d0b806f95bb96b6f0/src/python/pants/backend/docker/util_rules/docker_build_context.py#L150elegant-art-7479
06/03/2025, 9:41 AMpants package foo/bar:baz
, I'd expect a flag to this command that would return just the hash. Or is there another intended use of pants.hash
I'm not seeing?elegant-art-7479
06/03/2025, 9:42 AMbreezy-wolf-83149
06/07/2025, 3:42 PM