From f4d3cd0fd073fcbfd3321d086f767d75ad0c1bda Mon Sep 17 00:00:00 2001 From: Aleksandr Zelenin Date: Thu, 23 Aug 2018 05:35:26 +0300 Subject: [PATCH] relative paths fix --- bootstrap/bootstrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go index afb4d3f..1116a91 100644 --- a/bootstrap/bootstrap.go +++ b/bootstrap/bootstrap.go @@ -169,7 +169,7 @@ func (g *Generator) Run() error { defer os.Remove(f.Name()) // will not remove after rename } - cmd := exec.Command("go", "run", "-tags", g.BuildTags, path) + cmd := exec.Command("go", "run", "-tags", g.BuildTags, filepath.Base(path)) cmd.Stdout = f cmd.Stderr = os.Stderr cmd.Dir = filepath.Dir(path)