From 75218f40a20839714c2e0086180a828feeaae4cb Mon Sep 17 00:00:00 2001 From: Hung Nguyen Date: Mon, 26 Jun 2023 23:55:45 +0700 Subject: [PATCH 1/2] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From f10e8f124d8c026514000001761bc50a65405679 Mon Sep 17 00:00:00 2001 From: Hung Nguyen Date: Mon, 26 Jun 2023 23:56:19 +0700 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) 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