terraform/internal
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
..
earlyconfig command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
initwd copyDir: detect if the module install path is a symlink to a directory (#20603) 2019-03-07 12:59:48 -08:00
modsdir Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
tfplugin5 core: Allow legacy SDK to opt out of plan-time safety checks 2019-02-11 17:26:49 -08:00