2015-08-24 21:07:22 +00:00
|
|
|
// +build windows
|
|
|
|
|
2016-02-09 21:19:09 +00:00
|
|
|
package builder
|
2015-08-24 21:07:22 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|