don't use path.Join, because it cleans the final path

This commit is contained in:
Joachim Ansorg 2021-12-16 20:30:44 +01:00 committed by Bjørn Erik Pedersen
parent f4389e48ce
commit a4b9f1a92c

View file

@ -15,7 +15,6 @@ package modules
import (
"fmt"
"path"
"path/filepath"
"strings"
@ -389,7 +388,7 @@ type Mount struct {
// Used as key to remove duplicates.
func (m Mount) key() string {
return path.Join(m.Lang, m.Source, m.Target)
return strings.Join([]string{m.Lang, m.Source, m.Target}, "/")
}
func (m Mount) Component() string {