From: Joachim Ansorg Date: Thu, 16 Dec 2021 19:30:44 +0000 (+0100) Subject: don't use path.Join, because it cleans the final path X-Git-Tag: v0.91.0~9 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a4b9f1a92c600830f42f89e89d07450f08adabd3;p=brevno-suite%2Fhugo don't use path.Join, because it cleans the final path --- diff --git a/modules/config.go b/modules/config.go index fc4d617f..dd628571 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 {