Invoke "path.Clean" on "Directory" values in go-dockerlibrary itself (instead of only doing so just before "git archive" inside bashbrew)
This commit is contained in:
parent
7e50189a05
commit
7d4d3222cd
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"path"
|
||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -384,6 +385,7 @@ func (manifest *Manifest2822) AddEntry(entry Manifest2822Entry) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
entry.DeduplicateSharedTags()
|
entry.DeduplicateSharedTags()
|
||||||
|
entry.Directory = path.Clean(entry.Directory)
|
||||||
|
|
||||||
if invalidArchitectures := entry.InvalidArchitectures(); len(invalidArchitectures) > 0 {
|
if invalidArchitectures := entry.InvalidArchitectures(); len(invalidArchitectures) > 0 {
|
||||||
return fmt.Errorf("Tags %q has invalid Architectures: %q", entry.TagsString(), strings.Join(invalidArchitectures, ", "))
|
return fmt.Errorf("Tags %q has invalid Architectures: %q", entry.TagsString(), strings.Join(invalidArchitectures, ", "))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue