Skip to content

Commit

Permalink
Update k6 module path that was changed in v0.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed May 13, 2021
1 parent 0dc46e6 commit b2c96ed
Show file tree
Hide file tree
Showing 5 changed files with 343 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A k6 extension enables k6 tests to comfortably parse CSV values.

The underlying implementation is https://github.com/gocarina/gocsv

Built for [k6](https://github.com/loadimpact/k6) using [xk6](https://github.com/k6io/xk6).
Built for [k6](https://go.k6.io/k6) using [xk6](https://github.com/k6io/xk6).

## Usage

Expand Down Expand Up @@ -35,12 +35,12 @@ To build a `k6` binary with this extension, first ensure you have the prerequisi

Then:

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

2. Build the binary:
```bash
$ xk6 build --with github.com/szkiba/xk6-csv
$ xk6 build --with github.com/szkiba/xk6-csv@latest
```
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
version: "3"

env:
K6_VERSION: v0.31.1
K6_VERSION: v0.32.0

silent: true

Expand Down
2 changes: 1 addition & 1 deletion csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"io"
"strings"

"github.com/loadimpact/k6/js/modules"
"go.k6.io/k6/js/modules"
)

// Register the extensions on module initialization.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/szkiba/xk6-csv

go 1.16

require github.com/loadimpact/k6 v0.31.1
require go.k6.io/k6 v0.32.0
Loading

0 comments on commit b2c96ed

Please sign in to comment.