-
Notifications
You must be signed in to change notification settings - Fork 21
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
Unable to run xk6 from ubuntu-latest and Mac using homebrew #20
Comments
This IMO means that you haven't configured your From the official installation instructions it seems that you may need to reopen your terminal if you installed So the tr;dr is that your go install is not done, not that Also Hope this helps, I will keep this open in case someone can help you more and so that maybe you tell us how you fixed it ;) |
Thank you for your prompt response and help. Yes, I can confirm that this was a problem with go tooling setting env variables and not an issue with xk6. We did not see this behavior in our team when using 1.11, but for this tooling we switched to 1.16.5 which seems to behave differently with modules and also paths. |
That is a big jump 😅 I would expect that given that GOPATH is being deprecated the installations have started to not add it, but I would expect Either way, glad you managed to fixed. Do I understand that just starting a new terminal was not enough but you needed to manually add to $PATH? My installation (though g) added it automatically, but I would've needed to start a new terminal or |
Following the steps below I get an error. Both on Mac where k6 is installed via homebrew, and on ubuntu-latest image where its installed using apt-get.
cd k6_tests
go install github.com/k6io/xk6/cmd/xk6@latest (succeeds)
xk6 build master --with github.com/imiric/xk6-sql (fails with: command not found: xk6)
I feel like I am missing something super basic.
k6 run test.js reports:
ERRO[0000] GoError: unknown module: k6/x/sql
at reflect.methodValueCall (native)
at file:///Users/myusername/Documents/Repositories/k6_tests/test.js:25:22(26) hint="script exception"
The text was updated successfully, but these errors were encountered: