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:
parent
f089a89e8a
commit
0aa01b2ebf
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user