Skip to content

Commit a4b9f1a

Browse files
jansorgbep
authored andcommitted
don't use path.Join, because it cleans the final path
1 parent f4389e4 commit a4b9f1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ package modules
1515

1616
import (
1717
"fmt"
18-
"path"
1918
"path/filepath"
2019
"strings"
2120

@@ -389,7 +388,7 @@ type Mount struct {
389388

390389
// Used as key to remove duplicates.
391390
func (m Mount) key() string {
392-
return path.Join(m.Lang, m.Source, m.Target)
391+
return strings.Join([]string{m.Lang, m.Source, m.Target}, "/")
393392
}
394393

395394
func (m Mount) Component() string {

0 commit comments

Comments
 (0)