grafana / xk6

Build k6 with extensions
Apache License 2.0
215 stars 20 forks source link

Reimplement using k6foundry #111

Closed pablochacin closed 2 days ago

pablochacin commented 5 days ago

Replace build logic with k6foundry library. Also, refactors the build argument parsing logic to facilitate testing.

This change required upgrading to golang 1.22 (required by k6foundry).

Breaking change in xk6.Build library: the Build method no longer completes missing attributes using environment variables. The function FromOSEnv can be used to create Builder from the environment variable and then override or complete its attributes. See README.md for an example