Skip to content
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 version check fails for TF 0.13.5 #214

Open
solitaryr opened this issue Dec 16, 2020 · 2 comments
Open

terraform version check fails for TF 0.13.5 #214

solitaryr opened this issue Dec 16, 2020 · 2 comments

Comments

@solitaryr
Copy link

We're moving to TF 0.13.5 from 0.12.23 and our circleci jobs are failing on the version check step with the following error

rm -rf .terraform
terraform init -input=false -backend=false -no-color "$module_path"
terraform version -input=false -no-color

Reading required terraform version .tfswitchrc
Switched terraform to version "0.13.5"
Terraform initialized in an empty directory!

The directory has no Terraform configuration files. You may begin working
with Terraform immediately by creating Terraform configuration files.
Usage: terraform version [options]

Displays the version of Terraform and all installed plugins

Options:

-json Output the version information as a JSON object.
Error parsing command-line flags: flag provided but not defined: -input

It looks like terraform version does not like the -input=false with TF 0.13.5 (I didn't try any others). Is there something I'm missing? Or is this actually a bug?

@solitaryr
Copy link
Author

Note: this is using 1.8.1 of the orb.

@solitaryr
Copy link
Author

I tried to replicate with 0.13.0 and the command failed but works fine up through 0.12.29. Does -input=false even make sense for getting the version? I can't find anything in the doc aside from

This is used when you want to disable prompts for variables that haven't had their values specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant