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
This is mostly for posterity as I've identified the cause of the problem and it's an easy fix.
tfenv 2.2.0
Issue:
If the .terraform-version file is set to CRLF (not LF), and you have an empty newline in it like so:
0.14.6
If you try to run a terraform command or tfenv use 0.14.6, you'll get:
Switching default version to v0.14.6
Default version file overridden by /BLA/BLA/.terraform-version, changing the default version has no effect
No versions matching '' found in remote
/terraform: No such file or directorynv/2.2.0/libexec/tfenv-exec: line 105: /home/linuxbrew/.linuxbrew/Cellar/tfenv/2.2.0/versions/0.14.6
'terraform version' failed. Something is seriously wrong
The fix:
Remove the blank newline, or switch the file's line feed to LF
The text was updated successfully, but these errors were encountered:
This is mostly for posterity as I've identified the cause of the problem and it's an easy fix.
tfenv 2.2.0
Issue:
If the
.terraform-version
file is set toCRLF
(notLF
), and you have an empty newline in it like so:If you try to run a terraform command or
tfenv use 0.14.6
, you'll get:The fix:
Remove the blank newline, or switch the file's line feed to
LF
The text was updated successfully, but these errors were encountered: