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

git not found error when building k6 via xk6 docker image and including sql extension #103

Open
dennislefever opened this issue May 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dennislefever
Copy link

Get the following error when building using the xk6 docker image:

go: errors parsing go.mod:
go.mod:5: git init --bare in /go/pkg/mod/cache/vcs/7f51e6d9fcff52165040e226b11ec63a94d49f901bb4063780ffab7eaff6a1ce: exec: "git": executable file not found in $PATH

using the command

docker run --rm -it -e GOOS=darwin -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" \
  grafana/xk6 build v0.51.0 \
  --with github.com/szkiba/[email protected]

able to successfully build k6 without the sql extension using

docker run --rm -it -e GOOS=darwin -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" \
  grafana/xk6 build v0.51.0

Docker version 26.0.0, build 2ae903e
MacOS Sonoma Version 14.4.1 (23E224) - M1 chip

@dennislefever dennislefever changed the title git not found error when building k6 via xk6 docker image git not found error when building k6 via xk6 docker image and including sql extension May 14, 2024
@pablochacin pablochacin self-assigned this Jul 19, 2024
@pablochacin pablochacin added the bug Something isn't working label Jul 19, 2024
@pablochacin
Copy link
Collaborator

@dennislefever The problem seems to be produced because the extension github.com/szkiba/xk6-sql does not exist. The following command works:

docker run --rm -it -e GOOS=darwin -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" \
  grafana/xk6 build v0.51.0 \
  --with github.com/grafana/[email protected]

@pablochacin pablochacin transferred this issue from grafana/xk6-sql Jul 22, 2024
@pablochacin
Copy link
Collaborator

Transfered issue to grafana/xk6 as the problem is not specific of xk6-sql but to xk6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants