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

Add cgo support #88

Open
szkiba opened this issue Jan 10, 2025 · 2 comments
Open

Add cgo support #88

szkiba opened this issue Jan 10, 2025 · 2 comments

Comments

@szkiba
Copy link
Contributor

szkiba commented Jan 10, 2025

Certain extensions require cgo to be enabled. For these extensions to work correctly, cgo support must be implemented (setting the CGO_ENABLED=1 environment variable during build).

Background

The k6 extension registry/catalog includes a cgo boolean property for extensions. A true value indicates that cgo is required to compile the extension.

The sqlite3 diver of the grafana/xk6-sql extension, grafana/xk6-sql-driver-sqlite3, for example, requires cgo to be enabled.
https://registry.k6.io/module/github.com%2Fgrafana%2Fxk6-sql-driver-sqlite3/extension.json

@szkiba
Copy link
Contributor Author

szkiba commented Jan 10, 2025

@pablochacin , as you requested in issue #5, I opened a new issue about cgo support. Since xk6-sql is a popular extension and can be tested most easily with the sqlite3 driver, it would be important to implement cgo support for the start of binary provisioning.

@pablochacin
Copy link
Collaborator

@szkiba appreciated. This is much more clear and actionable. Thanks.

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

2 participants