Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build k6 binary [xk6-redis] #37

Closed
AymanSalamn opened this issue Feb 7, 2022 · 5 comments
Closed

Build k6 binary [xk6-redis] #37

AymanSalamn opened this issue Feb 7, 2022 · 5 comments

Comments

@AymanSalamn
Copy link

Is this the last command line to build the published version of xk6-redis?
Because I get some error when I try to run this command!

xk6 build v0.32.0 --with github.com/k6io/xk6-redis

@mstoykov
Copy link
Contributor

mstoykov commented Feb 7, 2022

Hi @AymanSalamn, 2 weeks ago I updated the repo to use the grafana org as well as update the actual installation instructions.

Sorry for the inconvience but we really want the urls and the names of the extensions to match and as we don't expect we will change them again and it's definitely what we want to have in the long run.

I would actually ask you why you are using this extension? As this is mostly for example purposes the more feature rich extension is https://github.com/dgzlopes/xk6-redis . We should probably make all of this more obvious though 🤔

@AymanSalamn
Copy link
Author

Hello @mstoykov, it's not a problem.
I used this extension because it is in k6 official's documentation, i will try the extension you recommended.

@AymanSalamn
Copy link
Author

When I used both extensions:
https://github.com/grafana/xk6-redis
https://github.com/dgzlopes/xk6-redis

I get the same error and the test failed to start.
Error:
unknown module: k6/x/redis.

@mstoykov, any idea please why I get this error?

@mstoykov
Copy link
Contributor

mstoykov commented Feb 7, 2022

@AymanSalamn I would expect that you do common mistake of trying to do k6 run ... after xk6 finish.

But xk6 does not overwrite your k6 binary it writes a new one in the local folder.

So you need to actually do ./k6 run ...

@AymanSalamn
Copy link
Author

@mstoykov Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants