tfutils / tfenv

Terraform version manager
MIT License
4.48k stars 454 forks source link

Fix #301: find min-required version through -chdir #303

Closed OJFord closed 2 years ago

OJFord commented 2 years ago

This commit makes it possible to use min-required with the terraform configuration (including the required_version spec) in a subdirectory as terraform -chdir=subdir.

Prior to this commit, this behaviour does not work (-chdir cannot be used with tfenv's terraform wrapper & min-required version) because tfenv expects to find the configuration in $PWD.

Fixes #301 Fixes #273

Zordrak commented 2 years ago

I'm about ready to draft a major release. Do you feel this is ready to go?

OJFord commented 2 years ago

Yes I think so - it's been working for me, I just had some trouble getting the test to prove it.