Skip to content

Module directories ending with "tgz" fail when running terraform get #11438

@philippevk

Description

@philippevk

This is a bug report. Steps to reproduce:

  • create a module directory with the name "dir-to-tgz"
  • add any .tf file to the module
  • reference module in your main terraform file
  • run terraform get

Result:

  • Error loading Terraform: Error downloading modules: source path must be a file

What is happening:

  • I'm guessing terraform supports modules compressed to .tgz files
  • I'm guessing terraform checks if source ends with "tgz" to determine this

Possible fix:
check for ".tgz" instead of "tgz" ?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions