opentofu/config/module
Emil Hessman d5a49363d7 config/module: handle absolute file paths on Windows
Using url.Parse to parse an absolute file path on Windows yields
a URL type where the Path element is prefixed by a slash.

For example, parsing "file:///C:/Users/user" gives a URL type
with Path:"/C:/Users/user".

According to golang.org/issue/6027, the parsing is correct as is.

The leading slash on the Path must be eliminated before any file
operations.

This commit introduces a urlParse function which wraps the url.Parse
functionality and removes the leading slash in Path for absolute file
paths on Windows.

Fixes config/module test failures on Windows.
2015-01-27 23:18:47 +01:00
..
test-fixtures config/module: Can look up Child with Tree.Child 2014-10-07 20:00:36 -07:00
copy_dir.go config/module: don't walk dst when dst is in src 2014-11-06 13:45:01 +01:00
detect_bitbucket_test.go config/module: parallelize some things 2014-09-16 12:02:35 -07:00
detect_bitbucket.go config/module: detect BitBucket URLs 2014-09-16 11:55:14 -07:00
detect_file_test.go config/module: adjust FileDetector tests for Windows 2015-01-27 23:18:46 +01:00
detect_file.go config/module: handle absolute file paths on Windows 2015-01-27 23:18:47 +01:00
detect_github_test.go config/module: support GitHub paths without // 2014-09-26 15:30:36 -07:00
detect_github.go fmt 2014-09-28 11:51:49 -07:00
detect_test.go config/module: detect supports subdirs 2014-09-27 09:29:12 -07:00
detect.go config/module: detect supports subdirs 2014-09-27 09:29:12 -07:00
folder_storage_test.go config/module: FileGetter tests 2014-09-13 18:54:12 -07:00
folder_storage.go config/module: start, lots of initial work 2014-09-13 17:45:56 -07:00
get_file_test.go argument and verb formatting fixes reported by go vet 2014-11-02 13:56:44 +01:00
get_file.go config/module: test that symlink that exists will be overwritten 2014-09-14 10:36:02 -07:00
get_git_test.go config/module: support branches in git 2014-09-16 10:02:11 -07:00
get_git.go config/module: support branches in git 2014-09-16 10:02:11 -07:00
get_hg_test.go config/module: parallelize some things 2014-09-16 12:02:35 -07:00
get_hg.go fmt 2014-09-28 11:51:49 -07:00
get_http_test.go config/module: adjust HttpGetter test to fix Windows test failure 2015-01-27 23:18:46 +01:00
get_http.go config/module: HTTP supports subdirs 2014-09-26 15:22:26 -07:00
get_test.go config/module: walk actually recurses into dirs, don't copy dot-prefix 2014-10-03 13:46:19 -07:00
get.go config/module: handle absolute file paths on Windows 2015-01-27 23:18:47 +01:00
module_test.go config/module: handle absolute file paths on Windows 2015-01-27 23:18:47 +01:00
module.go config/module: can load a tree properly 2014-09-14 20:00:17 -07:00
storage.go config: support subdirectories with the "//" syntax 2014-09-26 14:56:04 -07:00
tree_gob_test.go terraform: Plan should use module.Tree 2014-09-24 14:56:48 -07:00
tree_gob.go terraform: Plan should use module.Tree 2014-09-24 14:56:48 -07:00
tree_test.go config/module: Child(nil) or empty will return self 2014-10-07 20:02:18 -07:00
tree.go config/module: Child(nil) or empty will return self 2014-10-07 20:02:18 -07:00
url_helper.go config/module: handle absolute file paths on Windows 2015-01-27 23:18:47 +01:00