grafana / xk6

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

cant build custom extensions with k6 flag --profiling-enabled #81

Closed ChipArtem closed 4 months ago

ChipArtem commented 11 months ago

k6 have flag --profiling-enabled

Usage:
  k6 [command]
Flags:
      --profiling-enabled   enable profiling (pprof) endpoints, k6's REST API should be enabled as well

but after build flag does not exist

CGO_ENABLED=1 xk6 build --output k6_extensions --with k6_extensions=. 
 ./k6_extensions  run 1_test.js --profiling-enabled

ERRO[0000] unknown flag: --profiling-enabled 
pablochacin commented 9 months ago

Hi @ChipArtem can you run the k6's version command after building it and share the output? I think it would be ./k6 extensions version in your example.

I'm wondering if somehow you are building an older version of k6.

pablochacin commented 4 months ago

Closing due to inactivity.