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

v0.13.0-beta releases break --version/-v flag #25304

Closed
geota opened this issue Jun 19, 2020 · 3 comments
Closed

v0.13.0-beta releases break --version/-v flag #25304

geota opened this issue Jun 19, 2020 · 3 comments

Comments

@geota
Copy link

geota commented Jun 19, 2020

Terraform Version

v0.13.0-beta2

$ terraform version
Terraform v0.13.0-beta2

$ terraform --version
Error parsing command-line flags: flag provided but not defined: -version

$ terraform -v
Error parsing command-line flags: flag provided but not defined: -v

Terraform Configuration Files

n/a

Debug Output

$ terraform version
Terraform v0.13.0-beta2

$ terraform --version
Error parsing command-line flags: flag provided but not defined: -version

$ terraform -v
Error parsing command-line flags: flag provided but not defined: -v

Crash Output

Error parsing command-line flags: flag provided but not defined: -v

Expected Behavior

The version number should be printed like in 0.12

Actual Behavior

Terraform errors out.

Steps to Reproduce

Please list the full steps required to reproduce the issue, for example:

  1. Install terraform v0.12.26 release
  2. Confirm terraform -v, terraform --version , and terraform version are working as expected
  3. Install terraform v0.13.0-beta2 release
  4. See terraform -v and terraform --version are broken
  5. See terraform version is working as expected

Additional Context

In terraform 0.13 series, it broke the --version/-v flag. Oddly enough terraform version works. Even the instructions for this bug report instruct the user to use terraform -v.

Looks related to adding -json support to the version argument. Hopefully, this can be implemented in a backward-compatible way. I can take a stab at doing so.

References

#25252

@geota geota changed the title v0.13.0 releases break --version/-v flag v0.13.0 releases breaks --version/-v flag Jun 19, 2020
@geota geota changed the title v0.13.0 releases breaks --version/-v flag v0.13.0-beta releases break --version/-v flag Jun 19, 2020
@apparentlymart
Copy link
Contributor

Hi @geota,

This seems to be describing the same issue as #25276, so I'm going to close this one to consolidate discussion over there. Thanks for reporting it!

@geota
Copy link
Author

geota commented Jun 19, 2020

Thanks! No worries, I tried to find an existing issue but searching for terraform version bug brought up a ton of issues :)

@ghost
Copy link

ghost commented Jul 19, 2020

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.

@ghost ghost locked and limited conversation to collaborators Jul 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants