From 813900180e2209122435d4f324f8f647a4fa7dc4 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 14 Oct 2024 11:55:23 +0200 Subject: [PATCH] compose-go clean volume target to avoid ambiguous comparisons Signed-off-by: Nicolas De Loof --- pkg/compose/create.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/compose/create.go b/pkg/compose/create.go index f82b3c105b..2dbb41f895 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -24,7 +24,6 @@ import ( "fmt" "io/fs" "os" - "path" "path/filepath" "sort" "strconv" @@ -888,7 +887,6 @@ func buildContainerMountOptions(p types.Project, s types.ServiceConfig, img moby if m.Type == "volume" { src = m.Name } - m.Destination = path.Clean(m.Destination) if img.Config != nil { if _, ok := img.Config.Volumes[m.Destination]; ok { @@ -1112,8 +1110,6 @@ func buildMount(project types.Project, volume types.ServiceVolumeConfig) (mount. bind, vol, tmpfs := buildMountOptions(volume) - volume.Target = path.Clean(volume.Target) - if bind != nil { volume.Type = types.VolumeTypeBind }