-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform behaves differently depending on module source #15732
Comments
Hi @bitte-ein-bit, Thanks for filing the issue. The tar file you have is a bit odd, because it is missing the Some tar implementations (gnu and bsd at least) accept this and will create the directory implicitly. The package used by terraform to fetch and unpack the tarball however doesn't. The immediate workaround is to create the tar file so that there is a directory entry for |
Hi @jbardin, thanks for the problem analysation. Your workaround does indeed work but the directory has to come before the file. Works: Fails: |
Hi @bitte-ein-bit, Yes, that's because a tar file (Tape ARchive) is a linear set of file records, so the directory needs to be created before the file can be placed in there. I'll file an issue upstream for this. |
Closed by 16023 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi there,
I'm trying to have my modules gzip+tar-bundled to distribute them properly. I do not want to give customers access to git. There are some python files in the module and these are in a subdir which is ommited via archive download.
Terraform Version
terraform 0.9.11 on Mac OS, code seems to be the same in master.
Terraform Configuration Files
Debug Output
https://gist.github.com/bitte-ein-bit/c119a5b00aac97782fba599a42fdaf3d
Expected Behaviour
Module should work the same, irrelevant if git cloned or archive download.
Actual Behaviour
archive download is missing subdirectory files.
Steps to Reproduce
rm -rf .terraform/modules/ && terraform get
Important Factoids
Module layout:
The text was updated successfully, but these errors were encountered: