fix #1288: unable to go get httprunner v4

This commit is contained in:
debugtalk
2022-05-09 18:49:24 +08:00
parent 17c7699cee
commit 24effeccdb
48 changed files with 92 additions and 90 deletions

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

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() {

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{

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

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{

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
}

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

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{