This feels like it's where it belongs and it makes it exported again (which is needed for libcompose that was using it before 1.10). Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: fc6122a947f9eb9fc2f54fb8ba3b9da4531a6b99 Component: engine
18 lines
270 B
Go
18 lines
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
|
|
}
|