fix: do not init go mod

This commit is contained in:
debugtalk
2022-05-29 12:43:13 +08:00
parent 80986858f9
commit 0db71351f3

View File

@@ -209,15 +209,6 @@ func buildGo(path string, output string) error {
return err
}
// create go mod if not exists
goModFile := filepath.Join(pluginDir, "go.mod")
if !builtin.IsFilePathExists(goModFile) {
err = builtin.ExecCommandInDir(exec.Command("go", "mod", "init", "plugin"), pluginDir)
if err != nil {
return err
}
}
// download plugin dependency
// funplugin version should be locked
funplugin := fmt.Sprintf("github.com/httprunner/funplugin@%s", shared.Version)