@@ -5,6 +5,7 @@ pairs := darwin/amd64 linux/amd64 linux/arm64
55GOPATH ?= ~/go
66export GO111MODULE =on
77K6_VERSION ?= v0.43.0
8+ XK6_VERSION ?= v0.9.2
89
910fmt :
1011 find . -name ' *.go' -exec gofmt -s -w {} +
@@ -13,13 +14,13 @@ lint :
1314 golangci-lint run --out-format=tab ./...
1415
1516build :
16- go install github.com/k6io/ xk6/cmd/xk6@v0.4.1
17+ go install go.k6.io/ xk6/cmd/xk6@${XK6_VERSION}
1718 version=$(git describe --tags `git rev-list --tags --max-count=1` ) \
18- $(GOPATH ) /bin/xk6 build $(K6_VERSION ) --with github.com/vesoft-inc/k6-plugin@$(version ) ;
19+ $(GOPATH ) /bin/xk6 build $(K6_VERSION ) --with github.com/vesoft-inc/k6-plugin@$(version ) ;
1920
2021build-all : build-arm-v7
2122
22- go install github.com/k6io/ xk6/cmd/xk6@v0.4.1
23+ go install go.k6.io/ xk6/cmd/xk6@${XK6_VERSION}
2324 for pair in $(pairs);do echo $$pair; \
2425 os=`echo $$pair | cut -d / -f 1 ` ;\
2526 arch=`echo $$pair | cut -d / -f 2 ` ;\
@@ -35,16 +36,19 @@ build-all: build-arm-v7
3536 done
3637
3738build-arm-v7 :
38- go install github.com/k6io/ xk6/cmd/xk6@v0.4.1
39+ go install go.k6.io/ xk6/cmd/xk6@${XK6_VERSION}
3940 GOOS=linux GOARCH=arm64 GOARM=7 $(GOPATH ) /bin/xk6 build $(K6_VERSION ) --with github.com/vesoft-inc/k6-plugin@$(VERSION ) ;
4041 mv k6 k6-linux-arm64-v7
4142
4243build-dev :
43- go install github.com/k6io/xk6/cmd/
[email protected] 44- $(GOPATH ) /bin/xk6 build $(K6_VERSION ) --with github.com/vesoft-inc/k6-plugin@latest=${PWD} /../k6-plugin;
44+ go install go.k6.io/xk6/cmd/xk6@${XK6_VERSION}
45+ # if replace nebula-go, need to change nebula-go path
46+ # $(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@latest=${PWD}/../k6-plugin \
47+ # --replace github.com/vesoft-inc/nebula-go/v3=/home/Harris.chu/code/nebula-go;
48+ $(GOPATH ) /bin/xk6 build $(K6_VERSION ) --with github.com/vesoft-inc/k6-plugin@latest=${PWD} /../k6-plugin ;
4549
4650build-dev-all :
47- go install github.com/k6io/ xk6/cmd/xk6@v0.4.1
51+ go install go.k6.io/ xk6/cmd/xk6@${XK6_VERSION}
4852 for pair in $( pairs) ; do echo $$ pair; \
4953 os=` echo $$ pair | cut -d / -f 1 ` ; \
5054 arch=` echo $$ pair | cut -d / -f 2 ` ; \
0 commit comments