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" ?