diff --git a/Makefile b/Makefile index ecfb6e4..a4991e8 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,11 @@ pairs := darwin/amd64 linux/amd64 linux/arm64 GOPATH ?= ~/go export GO111MODULE=on VERSION ?= v0.0.8 +K6_VERSION ?= v0.33.0 build: go install github.com/k6io/xk6/cmd/xk6@v0.4.1 - $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION); + $(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@$(VERSION); build-all: build-arm-v7 @@ -16,18 +17,18 @@ build-all: build-arm-v7 for pair in $(pairs);do echo $$pair; \ os=`echo $$pair | cut -d / -f 1 ` ;\ arch=`echo $$pair | cut -d / -f 2 ` ;\ - GOOS=$$os GOARCH=$$arch $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION) ;\ + GOOS=$$os GOARCH=$$arch $(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@$(VERSION) ;\ mv k6 k6-$$os-$$arch; \ done build-arm-v7: go install github.com/k6io/xk6/cmd/xk6@v0.4.1 - GOOS=linux GOARCH=arm64 GOARM=7 $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION); + GOOS=linux GOARCH=arm64 GOARM=7 $(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@$(VERSION); mv k6 k6-linux-arm64-v7 build-dev: go install github.com/k6io/xk6/cmd/xk6@v0.4.1 - $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@latest=${PWD}/../k6-plugin; + $(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@latest=${PWD}/../k6-plugin; .PHONY: format format: diff --git a/client.go b/client.go index 7fcaf58..dea304a 100644 --- a/client.go +++ b/client.go @@ -19,7 +19,6 @@ type ( Log nebula.Logger DataChs []chan Data OutoptCh chan []string - Version string csvStrategy csvReaderStrategy initialized bool sessions []*nebula.Session @@ -97,7 +96,6 @@ func New() *NebulaPool { return &NebulaPool{ Log: nebula.DefaultLogger{}, initialized: false, - Version: version, } } diff --git a/register.go b/register.go index 6b6cafc..486464d 100644 --- a/register.go +++ b/register.go @@ -4,8 +4,6 @@ import ( "go.k6.io/k6/js/modules" ) -const version = "v0.0.6" - func init() { modules.Register("k6/x/nebulagraph", New()) }