Skip to content

Commit 451e959

Browse files
committed
fix: init plugin client for windows
1 parent 081cec0 commit 451e959

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hashicorp_plugin.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"github.com/pkg/errors"
1111

1212
"github.com/httprunner/funplugin/fungo"
13-
"github.com/httprunner/funplugin/myexec"
1413
)
1514

1615
type rpcType string
@@ -44,12 +43,12 @@ func newHashicorpPlugin(path string, option *pluginOption) (*hashicorpPlugin, er
4443
var cmd *exec.Cmd
4544
if p.option.langType == langTypePython {
4645
// hashicorp python plugin
47-
cmd = myexec.Command(p.option.python3, path)
46+
cmd = exec.Command(p.option.python3, path)
4847
// hashicorp python plugin only supports gRPC
4948
p.rpcType = rpcTypeGRPC
5049
} else {
5150
// hashicorp go plugin
52-
cmd = myexec.Command(path)
51+
cmd = exec.Command(path)
5352
// hashicorp go plugin supports grpc and rpc
5453
p.rpcType = rpcType(os.Getenv(fungo.PluginTypeEnvName))
5554
if p.rpcType != rpcTypeRPC {

0 commit comments

Comments
 (0)