-
Notifications
You must be signed in to change notification settings - Fork 24
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
Docker image does not support CGO_ENABLED on Mac #65
Comments
The So to compile a binary that requires cgo, you only need to set E.g. this works for xk6-sql:
|
This seems to be broken on Ubuntu for me as well. I forked the I got this to work locally by naively deleting the code that sets |
I think a more "proper" fix is to call |
@sivakusayan have you tried CGO is enforced when this flag is set: v0.13.4...v0.14.0#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L195 |
Some extensions depend on libraries written in C, requiring the
CGO_ENABLED=1
environment setting. An example is xk6-sql to support using SQLite3 databases. The preference, of course, would be for extensions to utilize pure-Go libraries strictly, but this will not always be the case.We need the xk6 builder image to allow for the CGO runtime.
The text was updated successfully, but these errors were encountered: