grafana/k6build

File URL's are not handled correctly in Windows systems

pablochacin opened this issue · 0 comments

The local directory cache creates a file URL to the object of the form: file:///path/to/object (see Store and Get methods)

In windows systems, the resulting URL is file://C:/path/to/object. When this URL is parsed in the Download method, it throws an error because the C: component is interpreted as a host (with a missing port).

One solution is to implement this proposal: net/url: add FromFilePath and ToFilePath as platform dependent functions (with different implementations in Linux and Window systems)