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)