terraform/internal/initwd
Martin Atkins 072c6d9aed internal/copydir: Factor out our recursive directory copy for reuse
We've previously been copying this function around so it could remain
unexported while being used in various packages. However, it's a
non-trivial function with lots of specific assumptions built into it, so
here we'll put it somewhere that other packages can depend on it _and_
document the assumptions it seems to be making for future reference.

As a bonus, this now uses os.SameFile to detect when two paths point to
the same physical file, instead of the slightly buggy local implementation
we had before which only worked on Unix systems and did not correctly
handle when the paths were on different physical devices.

The copy of the function I extracted here is the one from internal/initwd,
so this commit also includes the removal of that unexported version and
updating the callers in that package to use at at this new location.
2020-03-25 11:29:48 -07:00
..
testdata Standardise directory name for test data 2019-06-30 10:16:15 +02:00
doc.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
from_module.go internal/copydir: Factor out our recursive directory copy for reuse 2020-03-25 11:29:48 -07:00
from_module_test.go backend/remote-state: etcdv3, oss, and manta acc tests should fail 2019-09-27 08:45:12 -04:00
getter.go internal/copydir: Factor out our recursive directory copy for reuse 2020-03-25 11:29:48 -07:00
load_config.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
module_install.go registry: configurable retry client 2020-02-14 13:29:00 -06: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 internal/copydir: Factor out our recursive directory copy for reuse 2020-03-25 11:29:48 -07: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