boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
674 stars 46 forks source link

Update to use terraform_bin for state pull and help #345

Closed jrdemasi closed 8 months ago

jrdemasi commented 8 months ago

This is a 🐞 bug fix.

I don't believe new tests are required since this only touches old code covered by existing tests.

Summary

Finds lingering hard references to terraform and replaces it with the found binary (which accommodates both terraform or tofu)

Context

This resolves #338 and #344.

How to Test

Any dummy terraspace project can be used to test - run against master with tofu and a project that uses -no-color and/or has outputs between stacks and do the same with terraform. Then try the same tests with my changes.

Version Changes

tongueroo commented 8 months ago

Released in 2.2.16

Related: https://community.boltops.com/t/terraform-vs-opentofu/1115