mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #16830 from Microsoft/10662-refixdownload
Windows: Regression re-fix builder
This commit is contained in:
commit
a8175b751c
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ func (b *Builder) download(srcURL string) (fi builder.FileInfo, err error) {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
path := u.Path
|
||||
path := filepath.FromSlash(u.Path) // Ensure in platform semantics
|
||||
if strings.HasSuffix(path, string(os.PathSeparator)) {
|
||||
path = path[:len(path)-1]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue