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

min-required version cannot be found when -chdir in use #301

Closed
OJFord opened this issue Oct 26, 2021 · 0 comments · Fixed by #303
Closed

min-required version cannot be found when -chdir in use #301

OJFord opened this issue Oct 26, 2021 · 0 comments · Fixed by #303

Comments

@OJFord
Copy link
Contributor

OJFord commented Oct 26, 2021

tfenv's terraform wrapper seems not to interpret the -chdir flag, so as a result it fails to find any configured required_version.

OJFord added a commit to OJFord/tfenv that referenced this issue Oct 26, 2021
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`.
OJFord added a commit to OJFord/tfenv that referenced this issue Jul 8, 2022
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`.
OJFord added a commit to OJFord/tfenv that referenced this issue Jul 8, 2022
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`.
OJFord added a commit to OJFord/tfenv that referenced this issue Jul 8, 2022
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`.
OJFord added a commit to OJFord/tfenv that referenced this issue Jul 8, 2022
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`.
OJFord added a commit to OJFord/tfenv that referenced this issue Jul 14, 2022
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`.
Zordrak added a commit that referenced this issue Jul 14, 2022
Fix #301: find min-required version through -chdir
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.

2 participants