Loading...
Loading...
### Terraform Version ```shell Terraform v1.14.7 (darwin_arm64 and linux_amd64 both have the same issue) ``` ### Terraform Configuration Files ```terraform module "module_1" { source = "ourinternalregistry/orgname/modulename/aws" version = "4.0.0" ... module "module_2" { source = "ourinternalregistry/orgname/modulename/aws" version = "4.0.0" ``` ### Debug Output ``` Downloading >/>/>/aws 4.0.0 for module_1... 2026-03-11T15:12:09.079-0600 [DEBUG] looking up module location from "https://>/v1/modules/>/>/aws/4.0.0/download" 2026-03-11T15:12:09.079-0600 [DEBUG] GET https://>/v1/modules/>/>/aws/4.0.0/download 2026-03-11T15:12:09.925-0600 [DEBUG] Module installer: module_1 installed at .terraform/modules/module_1 - module_1 in .terraform/modules/module_1 2026-03-11T15:12:09.925-0600 [DEBUG] Module installer: begin module_1.aws_secret Downloading >/>/secret/aws 2.1.0 for module_1.aws_secret... 2026-03-11T15:12:09.930-0600 [DEBUG] Module installer: module_1.aws_secret installed at .terraform/modules/module_1.aws_secret/secret - module_1.aws_secret in .terraform/modules/module_1.aws_secret/secret 2026-03-11T15:12:09.930-0600 [DEBUG] Module installer: begin module_2 Downloading >/>/>/aws 4.0.0 for module_2... 2026-03-11T15:12:09.935-0600 [DEBUG] Module installer: module_2 installed at .terraform/modules/module_2 - module_2 in .terraform/modules/module_2 2026-03-11T15:12:09.935-0600 [DEBUG] Module installer: begin module_2.aws_secret Downloading >/>/secret/aws 2.1.0 for module_2.aws_secret... 2026-03-11T15:12:09.940-0600 [DEBUG] Module installer: module_2.aws_secret installed at .terraform/modules/module_2.aws_secret/secret ``` ### Expected Behavior Either terraform should behave consistently when extracting files for the first time or copying modules that are already extracted on the filesystem and terraform copies. Based on previous discussions such as https://discuss.hashicorp.com/t/is-terraform-considers-hidden-files-starts-with-dot/29569 the dot files should likely be excluded from extraction. ### Actual Behavior Here's the output of the extracted modules ``` ls -a .terraform/modules/module_1 .terraform/modules/module_2 .terraform/modules/module_1: . .. .python-version main.tf outputs.tf lambda.zip vars.tf .terraform/modules/module_2: . .. main.tf outputs.tf lambda.zip vars.tf ``` ### Steps to Reproduce 1. Create a terraform module with a dotfile (`.python-version`) on a remote registry 1. Reference the terraform module with a dotfile 1. `terraform init` ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.