-
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
xk6 cannot run k6 if there is a k6 directory #45
Comments
This seems like another facet of #3 to me 🤔 I think that apart from printing a better and earlier warning there isn't much we can do for the other case. For So I feel more like I don't know how common |
Oh, I missed #3 🤦 Would it be better to document that there should not be a
Yup, this is another problem. Not a biggie but it makes developing with an extension slower.
We've created a package named In the meantime, I found a dummy solution and it works for me for now: Update (a better version—only for zsh, though): kbr () {
set -o err_return
trap "unsetopt err_return && rm -f k6x" EXIT
xk6 build --output k6x --with github.com/grafana/xk6-browser=.
[[ -f ./k6x ]] && ./k6x run -q "$@"
} |
Due to a bug in xk6 (grafana/xk6#45), we can't have a directory or a file with a name k6. As discussed internally, @imiric suggested renaming the k6 pkg to k6ext: "k6ext follows the k6 convention of doing the same: errext, netext, etc., so let's stick to that.".
Due to a bug in xk6 (grafana/xk6#45), we can't have a directory or a file with a name k6. As discussed internally, @imiric suggested renaming the k6 pkg to k6ext: "k6ext follows the k6 convention of doing the same: errext, netext, etc., so let's stick to that.".
Due to a bug in xk6 (grafana/xk6#45), we can't have a directory or a file with a name k6. As discussed internally, @imiric suggested renaming the k6 pkg to k6ext: "k6ext follows the k6 convention of doing the same: errext, netext, etc., so let's stick to that.".
Due to a bug in xk6 (grafana/xk6#45), we can't have a directory or a file with a name k6. As discussed internally, @imiric suggested renaming the k6 pkg to k6ext: "k6ext follows the k6 convention of doing the same: errext, netext, etc., so let's stick to that.".
Duplicated of #3 |
xk6 cannot run the k6 command if there is a
k6
directory (or a non-executable file, I guess) in the extension folder:fork/exec ./k6: permission denied
.Reproduce:
git clone https://github.com/grafana/xk6-browser
(or any extension)cd xk6-browser
mkdir k6
xk6 run something.js
Output:
The text was updated successfully, but these errors were encountered: