terraform/internal/initwd
Kristin Laemmert 0c5fd835ce
copyDir: detect if the module install path is a symlink to a directory (#20603)
configs/configload and internal/initwd both had a copyDir function that
would fail if the source directory contained a symlinked directory,
because the os.FileMode.IsDir() returns false for symlinks.

This PR adds a check for a symlink and copies that symlink in the
target directory. It handles symlinks for both files and directories
(with included tests).

Fixes #20539
2019-03-07 12:59:48 -08:00
..
test-fixtures Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
copy_dir.go copyDir: detect if the module install path is a symlink to a directory (#20603) 2019-03-07 12:59:48 -08:00
copy_dir_test.go copyDir: detect if the module install path is a symlink to a directory (#20603) 2019-03-07 12:59:48 -08:00
doc.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
from_module.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
from_module_test.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
getter.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
inode.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
inode_freebsd.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
inode_windows.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
load_config.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
module_install.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
module_install_hooks.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
module_install_test.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
testing.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
version_required.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00