k6
k6 copied to clipboard
Absolute paths (without scheme) on windows do not work on not windows
Brief summary
If you have a script on windows that opens or imports a file with an absolute path such as "C:/somewhere/test.js" - that will work okay on windows, but if you do k6 archive
and give it to a friend on a none windows machine - it will break.
AFAIK this is the only such case.
This works with file:///C:/somewhere/test.js
This also means this doesn't work for k6 cloud ...
as it will basically archive it and send it to GCk6 which happens to not be running windows.
k6 version
all
OS
complicated
Docker version and image (if applicable)
No response
Steps to reproduce the problem
On a windows machine use C:/somewhere/test.js
Expected behaviour
It works with k6 cloud
and k6 archive
+ k6 run
on a not windows machine
Actual behaviour
Error that it can't be resolved.