Skip to content

Commit

Permalink
Update k6 module path that was changed in v0.32.0 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov authored May 14, 2021
1 parent 1259557 commit bb0ceb8
Show file tree
Hide file tree
Showing 6 changed files with 317 additions and 74 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# xk6-kafka

This is a [k6](https://github.com/loadimpact/k6) extension using the [xk6](https://github.com/k6io/xk6) system.
This is a [k6](https://go.k6.io/k6) extension using the [xk6](https://github.com/k6io/xk6) system.

| :exclamation: This is a proof of concept, isn't supported by the k6 team, and may break in the future. USE AT YOUR OWN RISK! |
| ---------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -22,15 +22,15 @@ Then, install [xk6](https://github.com/k6io/xk6) and build your custom k6 binary

1. Install `xk6`:
```shell
$ go get -u github.com/k6io/xk6/cmd/xk6
$ go install github.com/k6io/xk6/cmd/xk6@latest
```

2. Build the binary:
```shell
$ xk6 build v0.29.0 --with github.com/mostafa/xk6-kafka
$ xk6 build --with github.com/mostafa/xk6-kafka@latest
```

Note: you can always use the latest version of k6 to build the extension, but the earliest version of k6 that supports extensions via xk6 is v0.29.0.
Note: you can always use the latest version of k6 to build the extension, but the earliest version of k6 that supports extensions via xk6 is v0.32.0.

## Run & Test

Expand Down
6 changes: 3 additions & 3 deletions consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"io"
"time"

"github.com/loadimpact/k6/js/modules"
"github.com/loadimpact/k6/lib"
"github.com/loadimpact/k6/stats"
"go.k6.io/k6/js/modules"
"go.k6.io/k6/lib"
"go.k6.io/k6/stats"
kafkago "github.com/segmentio/kafka-go"
)

Expand Down
8 changes: 1 addition & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@ module github.com/mostafa/xk6-kafka
go 1.14

require (
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
github.com/andybalholm/brotli v1.0.1 // indirect
github.com/dustin/go-humanize v1.0.1-0.20200219035652-afde56e7acac // indirect
github.com/linkedin/goavro/v2 v2.9.8
github.com/loadimpact/k6 v0.31.1
github.com/mitchellh/mapstructure v1.3.3 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/segmentio/kafka-go v0.3.6
github.com/spf13/afero v1.2.3-0.20200504172317-c8608266dfb4 // indirect
github.com/tidwall/gjson v1.6.3 // indirect
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 // indirect
go.k6.io/k6 v0.32.0
gopkg.in/guregu/null.v3 v3.5.0 // indirect
)
Loading

0 comments on commit bb0ceb8

Please sign in to comment.