Skip to content

DockerComposeEnvironment duplicates the image name #12309

@davidfowl

Description

@davidfowl

This is a regression from the last release to fix the fact that we no longer hard code "latest". This logic needs to upsert the existing image name instead

if (source is ContainerImageReference cir && cir.Resource.TryGetContainerImageName(out var imageName))
{
defaultValue = imageName;
onlyIfMissing = false; // Always update the image name if it changes
}
envFile.Add(key, defaultValue, description, onlyIfMissing);

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions