feat: go module change

This commit is contained in:
liruichen 2023-08-28 10:31:52 +08:00
parent 7c39aad1ac
commit ead8d89d2d
29 changed files with 49 additions and 50 deletions

View File

@ -14,7 +14,7 @@
package cmd
import (
"github.com/qiniu/goc/v2/pkg/build"
"github.com/RickLeee/goc/v2/pkg/build"
"github.com/spf13/cobra"
)

View File

@ -14,7 +14,7 @@
package cmd
import (
"github.com/qiniu/goc/v2/pkg/build"
"github.com/RickLeee/goc/v2/pkg/build"
"github.com/spf13/cobra"
)

View File

@ -14,7 +14,7 @@
package cmd
import (
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/spf13/cobra"
"golang.org/x/tools/cover"
"k8s.io/test-infra/gopherage/pkg/cov"

View File

@ -14,7 +14,7 @@
package cmd
import (
"github.com/qiniu/goc/v2/pkg/client"
"github.com/RickLeee/goc/v2/pkg/client"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)

View File

@ -14,7 +14,7 @@
package cmd
import (
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/spf13/cobra"
)

View File

@ -14,7 +14,7 @@
package cmd
import (
"github.com/qiniu/goc/v2/pkg/build"
"github.com/RickLeee/goc/v2/pkg/build"
"github.com/spf13/cobra"
)

View File

@ -14,9 +14,9 @@
package cmd
import (
"github.com/qiniu/goc/v2/pkg/log"
"github.com/qiniu/goc/v2/pkg/server"
"github.com/qiniu/goc/v2/pkg/server/store"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/server"
"github.com/RickLeee/goc/v2/pkg/server/store"
"github.com/spf13/cobra"
)

View File

@ -14,7 +14,7 @@
package cmd
import (
"github.com/qiniu/goc/v2/pkg/client"
"github.com/RickLeee/goc/v2/pkg/client"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)

View File

@ -14,7 +14,7 @@
package cmd
import (
cli "github.com/qiniu/goc/v2/pkg/watch"
cli "github.com/RickLeee/goc/v2/pkg/watch"
"github.com/spf13/cobra"
)

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/qiniu/goc/v2
module github.com/RickLeee/goc/v2
go 1.16

View File

@ -14,7 +14,7 @@
package main
import (
"github.com/qiniu/goc/v2/cmd"
"github.com/RickLeee/goc/v2/cmd"
)
func main() {

View File

@ -18,7 +18,7 @@ import (
"os/exec"
"strings"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/spf13/pflag"
)
@ -53,7 +53,6 @@ type Build struct {
}
// NewBuild creates a Build struct
//
func NewBuild(opts ...gocOption) *Build {
b := &Build{}

View File

@ -20,7 +20,7 @@ import (
"path/filepath"
"strings"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)

View File

@ -23,7 +23,7 @@ import (
"path/filepath"
"strings"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/log"
)
// readProjectMetaInfo reads all meta informations of the corresponding project

View File

@ -19,9 +19,9 @@ import (
"path"
"path/filepath"
"github.com/qiniu/goc/v2/pkg/build/internal/tool"
"github.com/qiniu/goc/v2/pkg/build/internal/websocket"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/build/internal/tool"
"github.com/RickLeee/goc/v2/pkg/build/internal/websocket"
"github.com/RickLeee/goc/v2/pkg/log"
)
// Inject injects cover variables for all the .go files in the target directory

View File

@ -17,7 +17,7 @@ import (
"os"
"os/exec"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/log"
)
func NewInstall(opts ...gocOption) *Build {

View File

@ -18,7 +18,7 @@ import (
"os"
"sort"
"github.com/qiniu/goc/v2/pkg/log" // QINIU
"github.com/RickLeee/goc/v2/pkg/log" // QINIU
// "cmd/internal/edit"
// "cmd/internal/objabi"
)

View File

@ -21,7 +21,7 @@ import (
"os"
"path/filepath"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/log"
)
//go:embed websocket.tar

View File

@ -18,10 +18,10 @@ import (
"os/exec"
"os/signal"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/server"
"github.com/RickLeee/goc/v2/pkg/server/store"
"github.com/gin-gonic/gin"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/qiniu/goc/v2/pkg/server"
"github.com/qiniu/goc/v2/pkg/server/store"
)
func NewRun(opts ...gocOption) *Build {

View File

@ -21,7 +21,7 @@ import (
"path/filepath"
"strings"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/tongjingran/copy"
"golang.org/x/mod/modfile"
)

View File

@ -16,9 +16,9 @@ package client
import (
"os"
"github.com/RickLeee/goc/v2/pkg/client/rest"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/olekukonko/tablewriter"
"github.com/qiniu/goc/v2/pkg/client/rest"
"github.com/qiniu/goc/v2/pkg/log"
)
const (

View File

@ -27,8 +27,8 @@ import (
"golang.org/x/term"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/olekukonko/tablewriter"
"github.com/qiniu/goc/v2/pkg/log"
)
// Action provides methods to contact with the covered agent under test

View File

@ -20,9 +20,9 @@ import (
"os"
"path/filepath"
"github.com/qiniu/goc/v2/pkg/client/rest"
"github.com/qiniu/goc/v2/pkg/client/rest/profile"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/client/rest"
"github.com/RickLeee/goc/v2/pkg/client/rest/profile"
"github.com/RickLeee/goc/v2/pkg/log"
)
func GetProfile(host string, ids []string, skips []string, extra string, output string, need []string) {

View File

@ -14,9 +14,9 @@
package rest
import (
"github.com/RickLeee/goc/v2/pkg/client/rest/agent"
"github.com/RickLeee/goc/v2/pkg/client/rest/profile"
"github.com/go-resty/resty/v2"
"github.com/qiniu/goc/v2/pkg/client/rest/agent"
"github.com/qiniu/goc/v2/pkg/client/rest/profile"
)
// V2Client provides methods contact with the covered agent under test

View File

@ -22,8 +22,8 @@ import (
"sync"
"time"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/gin-gonic/gin"
"github.com/qiniu/goc/v2/pkg/log"
"golang.org/x/tools/cover"
"k8s.io/test-infra/gopherage/pkg/cov"
)

View File

@ -22,8 +22,8 @@ import (
"sync"
"time"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/gin-gonic/gin"
"github.com/qiniu/goc/v2/pkg/log"
)
// serveRpcStream holds connection between goc server and agent.

View File

@ -25,10 +25,10 @@ import (
"sync/atomic"
"time"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/RickLeee/goc/v2/pkg/server/store"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
"github.com/qiniu/goc/v2/pkg/log"
"github.com/qiniu/goc/v2/pkg/server/store"
)
// gocServer represents a goc server

View File

@ -18,9 +18,9 @@ import (
"sync"
"time"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
"github.com/qiniu/goc/v2/pkg/log"
)
func (gs *gocServer) serveWatchInternalStream(c *gin.Context) {

View File

@ -16,8 +16,8 @@ package watch
import (
"fmt"
"github.com/RickLeee/goc/v2/pkg/log"
"github.com/gorilla/websocket"
"github.com/qiniu/goc/v2/pkg/log"
)
func Watch(host string) {