Skip to content

Commit 7d4d322

Browse files
committed
Invoke "path.Clean" on "Directory" values in go-dockerlibrary itself (instead of only doing so just before "git archive" inside bashbrew)
1 parent 7e50189 commit 7d4d322

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manifest/rfc2822.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bufio"
55
"fmt"
66
"io"
7+
"path"
78
"regexp"
89
"sort"
910
"strings"
@@ -384,6 +385,7 @@ func (manifest *Manifest2822) AddEntry(entry Manifest2822Entry) error {
384385
}
385386

386387
entry.DeduplicateSharedTags()
388+
entry.Directory = path.Clean(entry.Directory)
387389

388390
if invalidArchitectures := entry.InvalidArchitectures(); len(invalidArchitectures) > 0 {
389391
return fmt.Errorf("Tags %q has invalid Architectures: %q", entry.TagsString(), strings.Join(invalidArchitectures, ", "))

0 commit comments

Comments
 (0)