mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9b648dfac6
Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>
22 lines
423 B
Go
22 lines
423 B
Go
// +build windows
|
|
|
|
package builder
|
|
|
|
import (
|
|
"io/ioutil"
|
|
|
|
"github.com/docker/docker/pkg/longpath"
|
|
)
|
|
|
|
func getTempDir(dir, prefix string) (string, error) {
|
|
tempDir, err := ioutil.TempDir(dir, prefix)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return longpath.AddPrefix(tempDir), nil
|
|
}
|
|
|
|
func fixPermissions(source, destination string, uid, gid int, destExisted bool) error {
|
|
// chown is not supported on Windows
|
|
return nil
|
|
}
|