diff --git a/hrp/convert.go b/hrp/convert.go index fd30ac1e..92f424f8 100644 --- a/hrp/convert.go +++ b/hrp/convert.go @@ -1,7 +1,6 @@ package hrp import ( - "github.com/pkg/errors" "github.com/rs/zerolog/log" "github.com/httprunner/httprunner/hrp/internal/builtin" @@ -24,7 +23,7 @@ func convert2PyTestScripts(paths ...string) error { python3, err := builtin.EnsurePython3Venv("httprunner") if err != nil { - return errors.Wrap(err, "ensure python venv failed") + return err } args := append([]string{"-m", "httprunner", "make"}, paths...) diff --git a/hrp/internal/pytest/main.go b/hrp/internal/pytest/main.go index 5bbc0555..a70ead1e 100644 --- a/hrp/internal/pytest/main.go +++ b/hrp/internal/pytest/main.go @@ -1,8 +1,6 @@ package pytest import ( - "github.com/pkg/errors" - "github.com/httprunner/httprunner/hrp/internal/builtin" "github.com/httprunner/httprunner/hrp/internal/sdk" ) @@ -15,7 +13,7 @@ func RunPytest(args []string) error { python3, err := builtin.EnsurePython3Venv("httprunner") if err != nil { - return errors.Wrap(err, "ensure python venv failed") + return err } args = append([]string{"-m", "httprunner", "run"}, args...) diff --git a/hrp/internal/scaffold/main.go b/hrp/internal/scaffold/main.go index cb05cbe0..9ff2fe79 100644 --- a/hrp/internal/scaffold/main.go +++ b/hrp/internal/scaffold/main.go @@ -180,7 +180,7 @@ func createPythonPlugin(projectName string) error { _, err = builtin.EnsurePython3Venv(fmt.Sprintf("funppy==%s", shared.Version)) if err != nil { - return errors.Wrap(err, "ensure python venv failed") + return err } return nil