From 0aa01b2ebf9cdfbfc8dcbeaf3e4d4da9d3621907 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 1 Nov 2019 08:33:14 +0000 Subject: [PATCH] Output the build error in plugin --- plugin/default.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/default.go b/plugin/default.go index bcafbc3b..8fde651a 100644 --- a/plugin/default.go +++ b/plugin/default.go @@ -121,5 +121,7 @@ func (p *plugin) Build(path string, c *Config) error { return fmt.Errorf("Failed to create dir %s: %v", filepath.Dir(path), err) } cmd := exec.Command("go", "build", "-buildmode=plugin", "-o", path+".so", goFile) + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr return cmd.Run() }