terraform/config
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
..
lang config/lang: verify single quotes syntax error [GH-613] 2015-01-16 10:28:00 -08:00
module config/module: handle absolute file paths on Windows 2015-01-27 23:18:47 +01:00
test-fixtures config: understand provisioner blocks in JSON [GH-807] 2015-01-16 10:14:48 -08:00
append.go config: Append works with modules 2014-09-11 19:50:41 -07:00
append_test.go config: Append works with modules 2014-09-11 19:50:41 -07:00
config.go config: multi-variable access in slice validation fixed [GH-798] 2015-01-15 09:40:13 -08:00
config_string.go config: add Config method 2014-10-02 11:34:08 -07:00
config_test.go config: multi-variable access in slice validation fixed [GH-798] 2015-01-15 09:40:13 -08:00
config_tree.go config: make Merge an exported func 2014-07-18 17:05:22 -07:00
import_tree.go config: HCL loader 2014-08-11 09:58:53 -07:00
interpolate.go config: use new API 2015-01-14 22:03:15 -08:00
interpolate_funcs.go config: use new API 2015-01-14 22:03:15 -08:00
interpolate_funcs_test.go config: use new API 2015-01-14 22:03:15 -08:00
interpolate_test.go config: remove a lot of unused stuff 2015-01-13 11:54:30 -08:00
interpolate_walk.go config: convert to config/lang 2015-01-13 10:27:57 -08:00
interpolate_walk_test.go config: convert to config/lang 2015-01-13 10:27:57 -08:00
lang.go config/lang; missed file 2015-01-15 09:40:36 -08:00
loader.go Do not read temporary editor files, fixes #548 2014-12-09 13:15:00 +00:00
loader_hcl.go config: understand provisioner blocks in JSON [GH-807] 2015-01-16 10:14:48 -08:00
loader_hcl_test.go config: HCL loader 2014-08-11 09:58:53 -07:00
loader_test.go config: understand provisioner blocks in JSON [GH-807] 2015-01-16 10:14:48 -08:00
merge.go config: Merge for modules works 2014-09-11 19:54:02 -07:00
merge_test.go config: Merge for modules works 2014-09-11 19:54:02 -07:00
raw_config.go config: use new API 2015-01-14 22:03:15 -08:00
raw_config_test.go config: use new API 2015-01-14 22:03:15 -08:00