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

How to compile it under windows #3

Closed
sergiutugulschi opened this issue Feb 24, 2021 · 2 comments
Closed

How to compile it under windows #3

sergiutugulschi opened this issue Feb 24, 2021 · 2 comments

Comments

@sergiutugulschi
Copy link

Running CGO_ENABLED=1 go run ./cmd/xk6/main.go build master \ --with github.com/imiric/xk6-sql
'CGO_ENABLED' is not recognized as an internal or external command,
operable program or batch file.

I have installed go, if I run without CGO_ENABLED=1 i'm getting [ERROR] missing flag;

@dboreham
Copy link

ymmv, but I am using containers on Windows (with Docker Desktop and WSL2 integration) to bypass the Windows build hassles. Example here : https://github.com/dboreham/xk6-sql-container

@imiric imiric closed this as completed in fc5bb4f May 17, 2021
@imiric
Copy link
Contributor

imiric commented May 17, 2021

Hi there, apologies for the late response, I missed the GitHub notification for this issue.

I added the Windows instructions in fc5bb4f, since the way environment variables are specified works differently on Windows shells. But I confirmed this approach works on Windows 10.

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