opentofu icon indicating copy to clipboard operation
opentofu copied to clipboard

Tofu json version still lists terraform_version

Open krapgras opened this issue 1 year ago • 2 comments

OpenTofu Version

OpenTofu v1.7.2
on linux_amd64

OpenTofu Configuration Files

...tofu config...

Debug Output

N/A

Expected Behavior

Output listing:

{ "OpenTofu_version": "1.7.2", "platform": "linux_amd64", "provider_selections": {} }

Actual Behavior

Output lists:

{ "terraform_version": "1.7.2", "platform": "linux_amd64", "provider_selections": {} }

Steps to Reproduce

tofu -json -version

Additional Context

Not sure if this is backwards compatibility or just forgoten but it seems the json output still lists the version as terraform_version It's not game breaking at all but wanted to report this is case the team feels like this should be changed.

image

References

No response

krapgras avatar Jun 25 '24 16:06 krapgras

Hey @krapgras thanks for filing this issue!

Changing the terraform_version field to opentofu_version would most likely break compatibility for existing tooling or users relying on the JSON output. I don't believe we are likely to make this change soon.

The same applies for the terraform_version in the state file

RLRabinowitz avatar Jul 04 '24 14:07 RLRabinowitz

IMO, not a bug. https://github.com/opentofu/opentofu/issues/1157#issuecomment-2318630956

skyzyx avatar Aug 29 '24 18:08 skyzyx