diff --git a/Dockerfile b/Dockerfile index b11bb0d..1a1906d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ ADD . . RUN apk --no-cache add build-base git RUN go install go.k6.io/xk6/cmd/xk6@latest RUN CGO_ENABLED=1 xk6 build \ + --replace golang.org/x/net=golang.org/x/net@latest \ --with github.com/grafana/xk6-sql=. \ --output /tmp/k6 diff --git a/README.md b/README.md index 8234a39..0d7b7ce 100644 --- a/README.md +++ b/README.md @@ -28,19 +28,19 @@ Then: 2. Build the binary: ```shell - xk6 build --with github.com/grafana/xk6-sql + xk6 build --replace golang.org/x/net=golang.org/x/net@latest --with github.com/grafana/xk6-sql ``` If you're using SQLite, ensure you have a C compiler installed (see the prerequisites note) and set `CGO_ENABLED=1` in the environment: ```shell - CGO_ENABLED=1 xk6 build --with github.com/grafana/xk6-sql + CGO_ENABLED=1 xk6 build --replace golang.org/x/net=golang.org/x/net@latest --with github.com/grafana/xk6-sql ``` On Windows this is done slightly differently: ```shell set CGO_ENABLED=1 - xk6 build --with github.com/grafana/xk6-sql + xk6 build --replace golang.org/x/net=golang.org/x/net@latest --with github.com/grafana/xk6-sql ``` ## Development