k6
k6 copied to clipboard
Handle input scripts with extensions other than .tar .js and .ts
The binary provisioning logic searches the arguments received by k6 for the input script if any. Currently this logic use the extension to identify this argument. However, k6 allows arbitrary extensions in the scripts.
This issue comes from the way the arguments are parsed. The binary provisioning logic is executed before k6 root command is executed and therefore before the CLI arguments have been parsed by cobra.