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

Respect terraform -chdir option #273

Closed
iTaybb opened this issue May 21, 2021 · 1 comment · Fixed by #303
Closed

Respect terraform -chdir option #273

iTaybb opened this issue May 21, 2021 · 1 comment · Fixed by #303

Comments

@iTaybb
Copy link

iTaybb commented May 21, 2021

It would seem that tfenv does not respect terraform -chdir global option, e.g., won't look and use the .terraform-version on the changed directory.

Solution should be straight-forward, if -chdir is configured on the commandline, look there instead of the working dir for a.terraform-version file.

I'll be happy to create a merge request for that.

@OJFord
Copy link
Contributor

OJFord commented Oct 26, 2021

Oops, sorry I didn't see this before I created duplicate #301. I've also submitted a PR #303 - would be happy to have your review/feedback of that @iTaybb.

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

Successfully merging a pull request may close this issue.

3 participants