From 212144d6587a5881d2cbc69fca3fed974fb60303 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 21 Nov 2019 11:19:52 +0000 Subject: [PATCH] fix windows compilation error --- runtime/process/os/os_windows.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/process/os/os_windows.go b/runtime/process/os/os_windows.go index 8c5a4a02..a77f83e5 100644 --- a/runtime/process/os/os_windows.go +++ b/runtime/process/os/os_windows.go @@ -6,7 +6,6 @@ import ( "os" "os/exec" "strconv" - "syscall" "github.com/micro/go-micro/runtime/process" ) @@ -15,13 +14,13 @@ type Process struct { } func (p *Process) Exec(exe *process.Executable) error { - cmd := exec.Command(exe.Binary.Path) + cmd := exec.Command(exe.Package.Path) return cmd.Run() } func (p *Process) Fork(exe *process.Executable) (*process.PID, error) { // create command - cmd := exec.Command(exe.Binary.Path, exe.Args...) + cmd := exec.Command(exe.Package.Path, exe.Args...) // set env vars cmd.Env = append(cmd.Env, exe.Env...)