This repository was archived by the owner on Nov 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
22
22
"os"
23
23
"os/exec"
24
24
"os/signal"
25
- "runtime"
26
25
"strings"
27
26
28
27
"github.com/spf13/cobra"
@@ -61,14 +60,10 @@ func mustDelegateToMoby(ctxType string) bool {
61
60
62
61
// Exec delegates to com.docker.cli if on moby context
63
62
func Exec (root * cobra.Command ) {
64
- execBinary := ComDockerCli
65
- if runtime .GOOS == "windows" { // workaround for windows issue https://github.com/golang/go/issues/38736
66
- var err error
67
- execBinary , err = LookPath (ComDockerCli )
68
- if err != nil {
69
- fmt .Fprintln (os .Stderr , err )
70
- os .Exit (1 )
71
- }
63
+ execBinary , err := LookPath (ComDockerCli )
64
+ if err != nil {
65
+ fmt .Fprintln (os .Stderr , err )
66
+ os .Exit (1 )
72
67
}
73
68
cmd := exec .Command (execBinary , os .Args [1 :]... )
74
69
cmd .Stdin = os .Stdin
@@ -93,7 +88,7 @@ func Exec(root *cobra.Command) {
93
88
}
94
89
}()
95
90
96
- err : = cmd .Run ()
91
+ err = cmd .Run ()
97
92
childExit <- true
98
93
if err != nil {
99
94
metrics .Track (store .DefaultContextType , os .Args [1 :], metrics .FailureStatus )
You can’t perform that action at this time.
0 commit comments