config/module: fix panic on Windows when running tests
On Windows, Go returns paths with the `\` path separator. Make sure we are using `/` even on Windows since URLs are `/`-based.
This commit is contained in:
parent
c49ae2baa0
commit
160e4f926e
|
@ -42,7 +42,7 @@ func testModule(n string) string {
|
|||
|
||||
var url url.URL
|
||||
url.Scheme = "file"
|
||||
url.Path = p
|
||||
url.Path = filepath.ToSlash(p)
|
||||
return url.String()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue