terraform/configs/configload
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 configs/configload: installer tests inspect their result 2018-02-15 15:56:39 -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 configs/configload: package for loading configurations 2018-02-15 15:56:38 -08:00
getter.go configload: Don't download the same module source multiple times 2018-10-16 18:50:29 -07:00
inode.go configs/configload: installation from registry and go-getter 2018-02-15 15:56:39 -08:00
inode_freebsd.go configs/configload: installation from registry and go-getter 2018-02-15 15:56:39 -08:00
inode_windows.go configs/configload: installation from registry and go-getter 2018-02-15 15:56:39 -08:00
loader.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
loader_load.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
loader_load_test.go configs/configload: package for loading configurations 2018-02-15 15:56:38 -08:00
loader_snapshot.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
loader_snapshot_test.go configload: Configuration snapshots 2018-10-16 18:50:29 -07:00
loader_test.go configs/configload: installation from registry and go-getter 2018-02-15 15:56:39 -08:00
module_mgr.go internal/modsdir: Factor out module manifest models to separate package 2019-01-14 11:33:21 -08:00
source_addr.go configs/configload: installation from registry and go-getter 2018-02-15 15:56:39 -08:00
testing.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00