From 2981a6ebc5c83c63d215b9ac1144c65530efccb2 Mon Sep 17 00:00:00 2001 From: "Aeneas Rekkas (arekkas)" Date: Wed, 21 Dec 2016 23:31:36 +0100 Subject: [PATCH] resolve windows path issue on realize add --- watcher/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/cmd.go b/watcher/cmd.go index da54349..51a5969 100644 --- a/watcher/cmd.go +++ b/watcher/cmd.go @@ -28,7 +28,7 @@ func (h *Blueprint) Run() error { func (h *Blueprint) Add(p *cli.Context) error { project := Project{ Name: h.name(p), - Path: filepath.Clean(p.String("path")), + Path: strings.Replace(filepath.Clean(p.String("path")), "\\", "/", -1), Build: p.Bool("build"), Bin: !p.Bool("no-bin"), Run: !p.Bool("no-run"),