We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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-version
latest:^1.0.invalid
terraform validate
$ terraform validate /[...]/tfutils/tfenv/lib/tfenv-version-name.sh: line 80: version_requested: unbound variable $ echo $? 1
A proper error message.
Looking at that file (tfenv-version-name.sh), I found that the "unbound variable" is only contained in the error message. This leads me to conclude that this is a bug. Here, I linked the commit that introduced the error message: 3dc5819#diff-7fcb3e8511bfa185e617cfd1e1b1d11030818551682579fc45fc0d4443ad13efR110
tfenv-version-name.sh
A possible fix could be to replace ${requested} with ${TFENV_VERSION}.
${requested}
${TFENV_VERSION}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproducing the issue
.terraform-version
file with the following contents:terraform validate
.Result
Expected Result
A proper error message.
Probable cause
Looking at that file (
tfenv-version-name.sh
), I found that the "unbound variable" is only contained in the error message. This leads me to conclude that this is a bug. Here, I linked the commit that introduced the error message: 3dc5819#diff-7fcb3e8511bfa185e617cfd1e1b1d11030818551682579fc45fc0d4443ad13efR110A possible fix could be to replace
${requested}
with${TFENV_VERSION}
.The text was updated successfully, but these errors were encountered: