mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-11 18:59:39 +08:00
fix: do not init go mod
This commit is contained in:
@@ -209,15 +209,6 @@ func buildGo(path string, output string) error {
|
|||||||
return err
|
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
|
// download plugin dependency
|
||||||
// funplugin version should be locked
|
// funplugin version should be locked
|
||||||
funplugin := fmt.Sprintf("github.com/httprunner/funplugin@%s", shared.Version)
|
funplugin := fmt.Sprintf("github.com/httprunner/funplugin@%s", shared.Version)
|
||||||
|
|||||||
Reference in New Issue
Block a user