Windows: Regression re-fix builder

Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 9cd84e405d970239df7169e66a099e28311ef614
Component: engine
This commit is contained in:
John Howard
2015-10-07 15:57:37 -07:00
parent 780fae5a2c
commit 2e11eb0e71

View File

@ -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]
}