diff options
Diffstat (limited to 'modules/config.go')
-rw-r--r-- | modules/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/config.go b/modules/config.go index f80a456cf..fc4d617f9 100644 --- a/modules/config.go +++ b/modules/config.go @@ -15,6 +15,7 @@ package modules import ( "fmt" + "path" "path/filepath" "strings" @@ -386,6 +387,11 @@ type Mount struct { ExcludeFiles interface{} } +// Used as key to remove duplicates. +func (m Mount) key() string { + return path.Join(m.Lang, m.Source, m.Target) +} + func (m Mount) Component() string { return strings.Split(m.Target, fileSeparator)[0] } |