Merge pull request #16830 from Microsoft/10662-refixdownload
Windows: Regression re-fix builder Upstream-commit: a8175b751c65b4c2373110f2a513048646336cf9 Component: engine
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user