-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
0.10.6 regression: can no longer source modules from parent directory #16138
Comments
Hi @kreisys, Sorry about the regression here. It looks like this wasn't intended to work this way, but of course it did work this way so there are now other use cases to consider ;) For reference: The syntax |
So, this is a regression, and should either be fixed, or be specified in Changelogs. Will become an other pain on the disk until modules can use a single directory .terraform/modules/xxx for the same source path. |
Hi. Then, in our infra repo we have So, sorry if it was not intended for this but it was not clear at all that it was not a perfectly valid use case, and now we rely heavily on it :/… |
For us, this is also a pretty serious regression. We have a single repository with many different terraform modules ,and some of them depend upon other modules in the same repository: referenced with |
We have a mono-repository for our project and we have both For development, the In our production folder, in our This enabled us to only update the tags our |
Hitting the same problem with relative paths for the module source specification. Please fix it. Thanks. |
Thanks sir ! |
Thank you. |
Thanks! |
Are there nightly builds or something? I'm blocked on this and can't downgrade since state has been applied using 0.10.6 already. |
@joestump what we usually do as a workaround is patch the version number in the state back to 0.10.5. |
Can anyone confirm that this issue is fixed? We have modules 2 levels up ( |
This is still a problem, had to roll back version. I spent some time trying to figure out why suddenly didn't work, assuming it was my fault... Specifically, we use init with a module directory to keep our plans, vars, and .terraform files out of the source. Please fix. |
If you refer to my usecase, it now works as intended. |
This issue is specifically about using a relative path ( Thanks! |
I think I've found an edge case of the same bug. Terraform Version
Terraform Configuration Files./main.tf:
./modules/primitive/foo/main.tf
./modules/bar/main.tf
Terraform applyA basic
But based on the description of the apply command, I think this should work too: Expected resultAs above Actual result
|
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. |
Terraform Version
Terraform Configuration Files
./main.tf:
./bug.tgz//foo/foo.tf
./bug.tgz//bar/bar.tf
(tarball here)
Expected Behavior
With Terraform 0.10.5:
Actual Behavior
With Terraform 0.10.6:
Steps to Reproduce
With Terraform 0.10.6:
tar xzf issue.tgz
cd issue
terraform init
Important Factoids
This happens with GitHub-sourced modules as well and I assume with any source that utilizes that double slash (
//
) syntax to determine the root of a module collection. I used a tgz file in the repro because this doesn't happen when using the local syntaxsource = "./foo"
. Interestingly, the same error occurs if I try to use the double slash syntax with a local path:source = ".//foo"
; but I'm not sure if that's even supposed to work in the first place.The text was updated successfully, but these errors were encountered: