Another `buildx` question, this time pants-specifi...
# general
m
Another
buildx
question, this time pants-specific: is it possible to add multiple
cache_from
entries to
docker_image
?
Relevant docker docs issue: https://github.com/docker/docs/issues/8531
b
Seems like pants doesn’t yet support this yet. I guess the cache_from arg would need to be made more flexible. Can you file a feature request issue?
m
b
Thank you! That suggestion sounds like a good one. Is that something you’d be interested in contributing to pants?
m
I can try giving it a go!
b
Nice! As a breadcrumb, it’s the
DockerImageBuildImageCacheFromField
type and its uses that need to be adjusted: https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/docker/target_types.py I’m on mobile now, so I don’t know how to get the “list or single” behaviour. Feel free to pop over to #C0D7TNJHL and ask if you need
🙌 1