This website requires JavaScript.
Explore
Help
Sign In
ResiLien
/
terraform
Watch
2
Star
0
Fork
You've already forked terraform
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
106bcd3bf0
terraform
/
internal
/
initwd
/
testdata
/
local-modules
/
root.tf
10 lines
115 B
Terraform
Raw
Normal View
History
Unescape
Escape
configs/configload: installation of local modules Enough of the InstallModules method to install local modules (those with relative paths). "Install" is actually a bit of an exaggeration for these since we actually just record them in our manifest after verifying that the source directory exists. This is a change of behavior relative to the old module installer since we no longer create a symlink to the module directory inside the .terraform/modules directory. Instead, we record the module's true location in our manifest so that the loader will find it later. The use of a symlink here predated the manifest file. Now that we have a manifest file the symlinks are redundant. Using the "natural" location of the module leads to more helpful error messages, since we'll refer to the module path as the user expects it, rather than to an internal alias.
2018-02-13 23:40:53 +01:00
configs/configload: installer tests inspect their result Previously we were just loading the module and asserting no diagnostics, but that is not really good enough since if we install modules incorrectly it's possible that we are still able to load an empty configuration successfully. Now we'll do some basic inspecetion of the module tree that results from loading what we installed, to ensure that all of the expected modules are present at the right locations in the tree.
2018-02-15 18:23:07 +01:00
variable
"
v
"
{
description
=
"
in root module
"
default
=
"
"
}
configs/configload: installation of local modules Enough of the InstallModules method to install local modules (those with relative paths). "Install" is actually a bit of an exaggeration for these since we actually just record them in our manifest after verifying that the source directory exists. This is a change of behavior relative to the old module installer since we no longer create a symlink to the module directory inside the .terraform/modules directory. Instead, we record the module's true location in our manifest so that the loader will find it later. The use of a symlink here predated the manifest file. Now that we have a manifest file the symlinks are redundant. Using the "natural" location of the module leads to more helpful error messages, since we'll refer to the module path as the user expects it, rather than to an internal alias.
2018-02-13 23:40:53 +01:00
module
"
child_a
"
{
source
=
"
./child_a
"
}