Fix platform specific os/process build
This commit is contained in:
		| @@ -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{} | ||||
| } | ||||
|   | ||||
| @@ -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{} | ||||
| } | ||||
|   | ||||
							
								
								
									
										12
									
								
								runtime/process/os/process.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								runtime/process/os/process.go
									
									
									
									
									
										Normal 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{} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user