github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/initwd/testdata/load-module-package-prefix/package-prefix.tf (about) 1 module "child" { 2 # NOTE: For this test we need a working absolute path so that Terraform 3 # will see this a an "external" module and thus establish a separate 4 # package for it, but we won't know which temporary directory this 5 # will be in at runtime, so we'll rewrite this file inside the test 6 # code to replace %%BASE%% with the actual path. %%BASE%% is not normal 7 # Terraform syntax and won't work outside of this test. 8 # 9 # Note that we're intentionally using the special // delimiter to 10 # tell Terraform that it should treat the "package" directory as a 11 # whole as a module package, with all of its descendents "downloaded" 12 # (copied) together into ./.terraform/modules/child so that child 13 # can refer to ../grandchild successfully. 14 source = "%%BASE%%/package//child" 15 }