summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJoachim Ansorg <github@ja-dev.eu>2021-12-16 20:30:44 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-12-16 21:14:33 +0100
commita4b9f1a92c600830f42f89e89d07450f08adabd3 (patch)
tree114f2ffa72d603e3a0916f1aace36223a9f36021 /modules
parentf4389e48ce0a70807362772d66c12ab5cd9e15f8 (diff)
don't use path.Join, because it cleans the final path
Diffstat (limited to 'modules')
-rw-r--r--modules/config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/config.go b/modules/config.go
index fc4d617f9..dd6285718 100644
--- a/modules/config.go
+++ b/modules/config.go
@@ -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 {