hundreds-coat-50607
11/15/2023, 6:18 PMpants publish
docker_image(
name="with-local-cache-backend",
cache_to={
"type": "registry",
"mode": "max",
"ref": "[REDACTED]",
},
cache_from={
"type": "registry",
"ref": "[REDACTED]",
},
)
Is throwing
InvalidTargetException: src/BUILD:1: Unrecognized field `cache_to={'type': 'registry', 'mode': 'max', 'ref': '[REDACTED]'}` in target [REDACTED]. Valid fields for the target type `docker_image`: ['build_network', 'build_platform', 'context_root', 'dependencies', 'description', 'extra_build_args', 'extra_build_hosts', 'image_labels', 'image_tags', 'instructions', 'output_path', 'pull', 'registries', 'repository', 'restartable', 'secrets', 'skip_push', 'source', 'squash', 'ssh', 'tags', 'target_stage'].
So I'm wondering if I'm missing something or the code isn't there anymore for some reason! Thanks for taking the time to look into this!curved-television-6568
11/15/2023, 6:36 PMmain
still.. but not part of 2.18
release series, as that was cut before that PR was merged.
https://github.com/pantsbuild/pants/blob/5cb1a91e32030a87c7aff1a6ea9a646c5470597f/src/python/pants/backend/docker/target_types.py#L325-L382curved-television-6568
11/15/2023, 6:40 PM2.19.0
release.hundreds-coat-50607
11/15/2023, 6:43 PMpowerful-scooter-95162
11/15/2023, 6:57 PMpowerful-scooter-95162
11/15/2023, 6:58 PMcurved-television-6568
11/15/2023, 7:15 PM