kompose/vendor/github.com/docker/docker/builder/context_windows.go
2016-07-18 23:23:39 +07:00

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
}