From 0db71351f3fd9f3f144000a0fdfd5a3ecf16cf50 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sun, 29 May 2022 12:43:13 +0800 Subject: [PATCH] fix: do not init go mod --- hrp/build.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hrp/build.go b/hrp/build.go index 65eded8d..4c082e74 100644 --- a/hrp/build.go +++ b/hrp/build.go @@ -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)