Signed-off-by: Stefan J. Wernli <swernli@microsoft.com> Upstream-commit: 9b648dfac6453de5944ee4bb749115d85a253a05 Component: engine
18 lines
268 B
Go
18 lines
268 B
Go
// +build windows
|
|
|
|
package utils
|
|
|
|
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
|
|
}
|