Hi! @0scar, this is possible. As long as your local set-up is correct for Golang.
Can you confirm the steps you took before the xk6 build…
Few picky things first. I noticed that you have “/absolute/path/to/xk6-redis” after your xk6-chaos, this looks incorrect to me and would be xk6 build --with github.com/grafana/xk6-chaos@latest
An example would be…
Given your Go env is set up correctly with the documented version,
Many thanks for the answer. Maybe I didn’t explain properly: I’m trying to build using my “local extension”
The Build Bundler linked above only works for published extensions. If you’re developing your own extension or modifying one locally, you will need to build a custom binary of k6 using your local extension rather than the published version.
Hi @0scar! Sorry for the extremely late response, but the easiest method would be to build from the directory containing your custom extension, then using the following command (updated for newer versions):
I just wanted to make note as well, I’m not sure if the “simskij/xk6-chaos” repository exists any longer. As of now, we do have that extension available as “grafana/xk6-chaos”.