grafana / xk6

Build k6 with extensions
Apache License 2.0
208 stars 20 forks source link

Default macOS image is not working #90

Open angel-luis opened 6 months ago

angel-luis commented 6 months ago

macOS 14.3.1 (Sonoma) - Apple M2

Tried the default command in the README:

docker run --rm -it -e GOOS=darwin -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" \
  grafana/xk6 build v0.43.1 \
  --with github.com/mostafa/xk6-kafka@v0.17.0 \
  --with github.com/grafana/xk6-output-influxdb@v0.3.0

I got this error:

go: k6 imports
    go.k6.io/k6/cmd imports
    github.com/grafana/xk6-output-prometheus-remote/pkg/remotewrite imports
    go.buf.build/grpc/go/prometheus/prometheus: unrecognized import path "go.buf.build/grpc/go/prometheus/prometheus": https fetch: Get "https://go.buf.build/grpc/go/prometheus/prometheus?go-get=1": dial tcp: lookup go.buf.build on 192.168.65.7:53: no such host
2024/03/11 10:40:46 [INFO] Cleaning up temporary folder: /tmp/buildenv_2024-03-11-1040.2198080098
2024/03/11 10:40:46 [FATAL] exit status 1
vanande commented 6 months ago

Same with cmd / wsl :

WSL:

CMD:

Momotoculteur commented 3 months ago

Hello, I'm on apple macbook pro m2 and i can't build even with the --env arg as mentionned in README.