fix #1288: unable to go get httprunner v4

This commit is contained in:
debugtalk
2022-05-09 19:53:16 +08:00
parent 69aa0b3ad1
commit 96ec10467b
48 changed files with 92 additions and 90 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/hrp"
"github.com/httprunner/httprunner/hrp/internal/boomer"
"github.com/httprunner/httprunner/v4/hrp"
"github.com/httprunner/httprunner/v4/hrp/internal/boomer"
)
// boomCmd represents the boom command
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/getsentry/sentry-go"
"github.com/httprunner/httprunner/hrp/cmd"
"github.com/httprunner/httprunner/v4/hrp/cmd"
)
func main() {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/hrp/internal/convert"
"github.com/httprunner/httprunner/v4/hrp/internal/convert"
)
var convertCmd = &cobra.Command{
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/hrp/internal/har2case"
"github.com/httprunner/httprunner/v4/hrp/internal/har2case"
)
// har2caseCmd represents the har2case command
+1 -1
View File
@@ -3,7 +3,7 @@ package cmd
import (
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/hrp/internal/pytest"
"github.com/httprunner/httprunner/v4/hrp/internal/pytest"
)
var pytestCmd = &cobra.Command{
+2 -2
View File
@@ -9,7 +9,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/hrp/internal/version"
"github.com/httprunner/httprunner/v4/hrp/internal/version"
)
// rootCmd represents the base command when called without any subcommands
@@ -33,7 +33,7 @@ Website: https://httprunner.com
Github: https://github.com/httprunner/httprunner
Copyright 2017 debugtalk`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
var noColor = false
noColor := false
if runtime.GOOS == "windows" {
noColor = true
}
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/hrp"
"github.com/httprunner/httprunner/v4/hrp"
)
// runCmd represents the run command
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/hrp/internal/scaffold"
"github.com/httprunner/httprunner/v4/hrp/internal/scaffold"
)
var scaffoldCmd = &cobra.Command{