From 3b2c8f69fd7f1ca6a463b9bd2c2e006d9e13fe98 Mon Sep 17 00:00:00 2001 From: John Howard Date: Mon, 4 May 2015 16:18:23 -0700 Subject: [PATCH] Windows: Fix filepath vs path in push.go Signed-off-by: John Howard --- graph/push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/push.go b/graph/push.go index 1b33288d8f..e24ee9f54e 100644 --- a/graph/push.go +++ b/graph/push.go @@ -7,7 +7,7 @@ import ( "io" "io/ioutil" "os" - "path" + "path/filepath" "sync" "github.com/Sirupsen/logrus" @@ -247,7 +247,7 @@ func (s *TagStore) pushRepository(r *registry.Session, out io.Writer, func (s *TagStore) pushImage(r *registry.Session, out io.Writer, imgID, ep string, token []string, sf *streamformatter.StreamFormatter) (checksum string, err error) { out = utils.NewWriteFlusher(out) - jsonRaw, err := ioutil.ReadFile(path.Join(s.graph.Root, imgID, "json")) + jsonRaw, err := ioutil.ReadFile(filepath.Join(s.graph.Root, imgID, "json")) if err != nil { return "", fmt.Errorf("Cannot retrieve the path for {%s}: %s", imgID, err) }