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 cf7cf8b commit 94faacc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# xk6-file
[k6](https://github.com/loadimpact/k6) extension for writing files, implemented using the
[k6](https://go.k6.io/k6) extension for writing files, implemented using the
[xk6](https://github.com/k6io/xk6) system.

## Build
```shell
xk6 build v0.31.1 --with github.com/avitalique/xk6-file
xk6 build --with github.com/avitalique/xk6-file@latest
```

## Example
Expand All @@ -17,4 +17,4 @@ export default function () {
file.writeString(filepath, 'New file. First line.\n');
file.appendString(filepath, `Second line. VU: ${__VU} - ITER: ${__ITER}`);
}
```
```
2 changes: 1 addition & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package file
import (
"os"

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

func init() {
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/avitalique/xk6-file

go 1.16

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

0 comments on commit 94faacc

Please sign in to comment.