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

Can't build with xk6 #55

Closed
KurzweilTV opened this issue Nov 16, 2022 · 2 comments
Closed

Can't build with xk6 #55

KurzweilTV opened this issue Nov 16, 2022 · 2 comments

Comments

@KurzweilTV
Copy link

If you try to build this with xk6 build --with github.com/grafana/xk6-loki, like most tutorials online suggest it will fail, which blocks from installing more than one plugin with xk6-loki

For example, if I wanted to test Loki, and then remote write the results to prometheus.

@marcusteixeira
Copy link

Error msg???

@javaducky
Copy link

@KurzweilTV it would appear there are some known dependency issues (I don't know the exact details) when building the k6 using xk6-loki based upon the current Makefile.

I was able to confirm that xk6 build --with github.com/grafana/xk6-loki will fail as you mentioned, however including the --replace options based on the Makefile, will allow build. Below is the updated command line that works:

xk6 build master \
 --replace "github.com/mingrammer/flog=github.com/chaudum/flog@v0.4.4-0.20220419113107-eb2f67f18b99" \
 --replace "google.golang.org/grpc=google.golang.org/grpc@v1.45.0" \
 --replace "github.com/hashicorp/consul=github.com/hashicorp/consul@v1.5.1" \
 --replace "github.com/go-kit/log=github.com/dannykopping/go-kit-log@v0.2.2-0.20221002180827-5591c1641b6b" \
 --with github.com/grafana/xk6-loki

Advise to use the modified build command until the dependency issues can be addressed by the maintainers.

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

3 participants