зеркало из https://github.com/microsoft/docker.git
18 строки
270 B
Go
18 строки
270 B
Go
|
// +build windows
|
||
|
|
||
|
package builder
|
||
|
|
||
|
import (
|
||
|
"path/filepath"
|
||
|
|
||
|
"github.com/docker/docker/pkg/longpath"
|
||
|
)
|
||
|
|
||
|
func getContextRoot(srcPath string) (string, error) {
|
||
|
cr, err := filepath.Abs(srcPath)
|
||
|
if err != nil {
|
||
|
return "", err
|
||
|
}
|
||
|
return longpath.AddPrefix(cr), nil
|
||
|
}
|