You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alanplatt opened this issue
Aug 12, 2020
· 4 comments
Labels
bugconfirmeda Terraform Core team member has reproduced this issueexplaineda Terraform Core team member has described the root cause of this issue in codev0.13Issues (primarily bugs) reported against v0.13 releases
Hi @alanplatt! Thanks for reporting this! I was able to reproduce it. I created a trivial github reproduction case at https://github.com/danieldreier/terraform-issue-reproductions/tree/master/25822 to show it. When I ran yours as stated without a backend block in the HCL, it didn't crash, but it crashes just as you describe with a local backend configured.
danieldreier
added
confirmed
a Terraform Core team member has reproduced this issue
v0.13
Issues (primarily bugs) reported against v0.13 releases
and removed
new
new issue not yet triaged
labels
Aug 12, 2020
There is an open PR that will fix this, #25804! I've already confirmed that PR fixes this issue. This is technically a breaking change, as previously users could specify a non-extant file as a shorthand for "empty out the backend config", so it should wait for 0.14.
If we wanted to fix the panic in 0.13 without breaking the current function, we could modify init to check if the file exists first, and if not treat that as an empty backend config file, around these lines:
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugconfirmeda Terraform Core team member has reproduced this issueexplaineda Terraform Core team member has described the root cause of this issue in codev0.13Issues (primarily bugs) reported against v0.13 releases
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
When i pass the backend config, if the file path is incorrect it should say 'file not found'
Actual Behavior
terraform crashed
Steps to Reproduce
File path does not exists:
The text was updated successfully, but these errors were encountered: