Fix platform specific os/process build

This commit is contained in:
Asim Aslam 2019-11-23 08:25:56 +00:00
parent 38e29c5101
commit cae4148594
3 changed files with 14 additions and 14 deletions

View File

@ -1,3 +1,5 @@
// +build !windows
// Package os runs processes locally
package os
@ -11,9 +13,6 @@ import (
"github.com/micro/go-micro/runtime/process"
)
type Process struct {
}
func (p *Process) Exec(exe *process.Executable) error {
cmd := exec.Command(exe.Package.Path)
return cmd.Run()
@ -99,7 +98,3 @@ func (p *Process) Wait(pid *process.PID) error {
return fmt.Errorf(ps.String())
}
func NewProcess(opts ...process.Option) process.Process {
return &Process{}
}

View File

@ -10,9 +10,6 @@ import (
"github.com/micro/go-micro/runtime/process"
)
type Process struct {
}
func (p *Process) Exec(exe *process.Executable) error {
cmd := exec.Command(exe.Package.Path)
return cmd.Run()
@ -90,7 +87,3 @@ func (p *Process) Wait(pid *process.PID) error {
return fmt.Errorf(ps.String())
}
func NewProcess(opts ...process.Option) process.Process {
return &Process{}
}

View File

@ -0,0 +1,12 @@
// Package os runs processes locally
package os
import (
"github.com/micro/go-micro/runtime/process"
)
type Process struct{}
func NewProcess(opts ...process.Option) process.Process {
return &Process{}
}