Skip to content

Commit

Permalink
increase mod version (#259)
Browse files Browse the repository at this point in the history
* feat: upgrade module to v3 then can import v3 tag

* Update config.go
  • Loading branch information
LooJee committed Feb 6, 2023
1 parent b7d6374 commit 111a30a
Show file tree
Hide file tree
Showing 20 changed files with 64 additions and 64 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -6,9 +6,9 @@ default: build
build: clean fmt
@cd cmd; \
CGO_ENABLED=0 go build -ldflags "\
-X 'github.com/vesoft-inc/nebula-importer/pkg/version.GoVersion=$(shell go version)' \
-X 'github.com/vesoft-inc/nebula-importer/pkg/version.GitHash=$(shell git rev-parse HEAD)'\
-X 'github.com/vesoft-inc/nebula-importer/pkg/version.Tag=$(shell git describe --exact-match --abbrev=0 --tags | sed 's/^v//')'\
-X 'github.com/vesoft-inc/nebula-importer/v3/pkg/version.GoVersion=$(shell go version)' \
-X 'github.com/vesoft-inc/nebula-importer/v3/pkg/version.GitHash=$(shell git rev-parse HEAD)'\
-X 'github.com/vesoft-inc/nebula-importer/v3/pkg/version.Tag=$(shell git describe --exact-match --abbrev=0 --tags | sed 's/^v//')'\
" -o nebula-importer; \
mv nebula-importer ..;
@echo "nebula-importer has been outputed to $$(pwd)/nebula-importer";
Expand Down
12 changes: 6 additions & 6 deletions cmd/importer.go
Expand Up @@ -7,12 +7,12 @@ import (
"os"
"time"

"github.com/vesoft-inc/nebula-importer/pkg/cmd"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/errors"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/pkg/version"
"github.com/vesoft-inc/nebula-importer/pkg/web"
"github.com/vesoft-inc/nebula-importer/v3/pkg/cmd"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/errors"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/version"
"github.com/vesoft-inc/nebula-importer/v3/pkg/web"
)

var configuration = flag.String("config", "", "Specify importer configure file path")
Expand Down
4 changes: 2 additions & 2 deletions go.mod
@@ -1,4 +1,4 @@
module github.com/vesoft-inc/nebula-importer
module github.com/vesoft-inc/nebula-importer/v3

require (
github.com/cenkalti/backoff/v4 v4.1.3
Expand All @@ -8,7 +8,7 @@ require (
github.com/vesoft-inc/nebula-go/v3 v3.0.0-20220425030225-cdb52399b40a
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
gopkg.in/yaml.v3 v3.0.1 // indirect
)

go 1.13
6 changes: 3 additions & 3 deletions pkg/client/clientmgr.go
@@ -1,9 +1,9 @@
package client

import (
"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

type NebulaClientMgr struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/client/clientpool.go
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/cenkalti/backoff/v4"
nebula "github.com/vesoft-inc/nebula-go/v3"
"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

const (
Expand Down
16 changes: 8 additions & 8 deletions pkg/cmd/runner.go
Expand Up @@ -5,14 +5,14 @@ import (
"fmt"
"sync"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/client"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/errhandler"
importerError "github.com/vesoft-inc/nebula-importer/pkg/errors"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/pkg/reader"
"github.com/vesoft-inc/nebula-importer/pkg/stats"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/client"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/errhandler"
importerError "github.com/vesoft-inc/nebula-importer/v3/pkg/errors"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/reader"
"github.com/vesoft-inc/nebula-importer/v3/pkg/stats"
)

type Runner struct {
Expand Down
10 changes: 5 additions & 5 deletions pkg/config/config.go
Expand Up @@ -10,11 +10,11 @@ import (
"strings"
"time"

"github.com/vesoft-inc/nebula-importer/pkg/base"
ierrors "github.com/vesoft-inc/nebula-importer/pkg/errors"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/pkg/picker"
"github.com/vesoft-inc/nebula-importer/pkg/utils"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
ierrors "github.com/vesoft-inc/nebula-importer/v3/pkg/errors"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/picker"
"github.com/vesoft-inc/nebula-importer/v3/pkg/utils"
"gopkg.in/yaml.v2"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config_test.go
Expand Up @@ -10,10 +10,10 @@ import (
"text/template"

"github.com/stretchr/testify/assert"
"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"gopkg.in/yaml.v2"

"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

func TestYAMLParser(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/csv/errwriter.go
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"strings"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

type ErrWriter struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/csv/reader.go
Expand Up @@ -8,9 +8,9 @@ import (
"io"
"os"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

type CSVReader struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/errhandler/datawriter.go
Expand Up @@ -3,7 +3,7 @@ package errhandler
import (
"os"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
)

type DataWriter interface {
Expand Down
8 changes: 4 additions & 4 deletions pkg/errhandler/handler.go
Expand Up @@ -5,10 +5,10 @@ import (
"os"
"strings"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/csv"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/csv"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

type Handler struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/logger/logger.go
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
"runtime"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
)

type Logger interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/picker/converter-type.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/vesoft-inc/nebula-importer/pkg/utils"
"github.com/vesoft-inc/nebula-importer/v3/pkg/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/reader/batch.go
Expand Up @@ -3,7 +3,7 @@ package reader
import (
"fmt"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
)

type Batch struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/reader/batchmgr.go
Expand Up @@ -6,9 +6,9 @@ import (
"hash/fnv"
"strings"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

type BatchMgr struct {
Expand Down
10 changes: 5 additions & 5 deletions pkg/reader/reader.go
Expand Up @@ -10,11 +10,11 @@ import (
"strings"
"time"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/csv"
"github.com/vesoft-inc/nebula-importer/pkg/errors"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/csv"
"github.com/vesoft-inc/nebula-importer/v3/pkg/errors"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

type DataFileReader interface {
Expand Down
8 changes: 4 additions & 4 deletions pkg/stats/statsmgr.go
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"time"

"github.com/vesoft-inc/nebula-importer/pkg/base"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/pkg/reader"
"github.com/vesoft-inc/nebula-importer/v3/pkg/base"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/reader"
)

type StatsMgr struct {
Expand Down
8 changes: 4 additions & 4 deletions pkg/web/httpserver.go
Expand Up @@ -8,10 +8,10 @@ import (
"strings"
"sync"

"github.com/vesoft-inc/nebula-importer/pkg/cmd"
"github.com/vesoft-inc/nebula-importer/pkg/config"
"github.com/vesoft-inc/nebula-importer/pkg/errors"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/cmd"
"github.com/vesoft-inc/nebula-importer/v3/pkg/config"
"github.com/vesoft-inc/nebula-importer/v3/pkg/errors"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

type WebServer struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/web/taskmgr.go
Expand Up @@ -3,8 +3,8 @@ package web
import (
"sync"

"github.com/vesoft-inc/nebula-importer/pkg/cmd"
"github.com/vesoft-inc/nebula-importer/pkg/logger"
"github.com/vesoft-inc/nebula-importer/v3/pkg/cmd"
"github.com/vesoft-inc/nebula-importer/v3/pkg/logger"
)

type taskMgr struct {
Expand Down

0 comments on commit 111a30a

Please sign in to comment.