1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Output the build error in plugin

This commit is contained in:
Asim Aslam 2019-11-01 08:33:14 +00:00
parent f089a89e8a
commit 0aa01b2ebf

View File

@ -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) 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 := exec.Command("go", "build", "-buildmode=plugin", "-o", path+".so", goFile)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd.Run() return cmd.Run()
} }