Commit 7893f15
committed
Fix #301: find min-required version through -chdir
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`.1 parent 18ef0fa commit 7893f15
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
6 | 17 | | |
7 | 18 | | |
8 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments