mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
compose-go's WithImagesResolved no longer special-cases a type=image volume source that happens to match another service's name -- per compose-spec/compose-go#929, such a source is always resolved as a plain docker image reference, never treated as an implicit reference to that service's locally built image. This surfaced as a real CI failure after bumping the compose-go pin: the mock in TestResolveImageDigests only expected calls for nginx/someimage/ hookimage and panicked on the now-unexpected lookup for "builder". Update the test to expect the volume source to resolve like any other image reference, and drop the stale comment in resolveServiceImageDigests describing the old, now-removed behavior. Signed-off-by: Nicolas De Loof <[email protected]>